Skip to content

Commit b058b25

Browse files
YueHaibinggregkh
authored andcommitted
w1: ds250x: Fix build error without CRC16
If CRC16 is not set, building will fails: drivers/w1/slaves/w1_ds250x.o: In function `w1_ds2505_read_page': w1_ds250x.c:(.text+0x82f): undefined reference to `crc16' w1_ds250x.c:(.text+0x90a): undefined reference to `crc16' w1_ds250x.c:(.text+0x91a): undefined reference to `crc16' Reported-by: Hulk Robot <[email protected]> Fixes: 25ec871 ("w1: add DS2501, DS2502, DS2505 EPROM device driver") Signed-off-by: YueHaibing <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e0b0cb9 commit b058b25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/w1/slaves/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ config W1_SLAVE_DS2438
103103

104104
config W1_SLAVE_DS250X
105105
tristate "512b/1kb/16kb EPROM family support"
106+
select CRC16
106107
help
107108
Say Y here if you want to use a 1-wire
108109
512b/1kb/16kb EPROM family device (DS250x).

0 commit comments

Comments
 (0)