d7b3ed560df552762eba493e56239118c079c5ad
[openwrt/staging/blogic.git] /
1 From f74fe07cab3e8816c029de25029b71c80004619c Mon Sep 17 00:00:00 2001
2 From: Mariusz Bialonczyk <manio@skyboo.net>
3 Date: Thu, 16 May 2019 14:39:21 +0200
4 Subject: [PATCH 506/806] w1: ds2408: Fix typo after 49695ac46861 (reset on
5 output_write retry with readback)
6
7 commit 6660a04feb7ef648e50c792e19084d675fa6f3a2 upstream.
8
9 Fix a typo in commit:
10 49695ac46861 w1: ds2408: reset on output_write retry with readback
11
12 Fixes: 49695ac46861 ("w1: ds2408: reset on output_write retry with readback")
13 Reported-by: Phil Elwell <phil@raspberrypi.org>
14 Cc: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
15 Signed-off-by: Mariusz Bialonczyk <manio@skyboo.net>
16 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
17 ---
18 drivers/w1/slaves/w1_ds2408.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/drivers/w1/slaves/w1_ds2408.c
22 +++ b/drivers/w1/slaves/w1_ds2408.c
23 @@ -138,7 +138,7 @@ static ssize_t status_control_read(struc
24 W1_F29_REG_CONTROL_AND_STATUS, buf);
25 }
26
27 -#ifdef fCONFIG_W1_SLAVE_DS2408_READBACK
28 +#ifdef CONFIG_W1_SLAVE_DS2408_READBACK
29 static bool optional_read_back_valid(struct w1_slave *sl, u8 expected)
30 {
31 u8 w1_buf[3];