]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: pressure: sdp500: Add missing select CRC8
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 29 Sep 2024 17:21:05 +0000 (18:21 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Sep 2024 08:55:21 +0000 (09:55 +0100)
Fix:
   sh4-linux-ld: drivers/iio/pressure/sdp500.o: in function `sdp500_probe':
>> drivers/iio/pressure/sdp500.c:130:(.text+0xe8): undefined reference to `crc8_populate_msb'
   sh4-linux-ld: drivers/iio/pressure/sdp500.o: in function `sdp500_read_raw':
>> drivers/iio/pressure/sdp500.c:74:(.text+0x200): undefined reference to `crc8'

by adding missing select.

Reviewed-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409271341.0dhpXk7G-lkp@intel.com/
Link: https://patch.msgid.link/20240929172105.1819259-1-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/pressure/Kconfig

index ce369dbb17fc1551f2e139db340c7822dfeab030..df65438c771e37a541f1f1f4a038a9328a6f909b 100644 (file)
@@ -253,6 +253,7 @@ config MS5637
 config SDP500
        tristate "Sensirion SDP500 differential pressure sensor I2C driver"
        depends on I2C
+       select CRC8
        help
          Say Y here to build support for Sensirion SDP500 differential pressure
          sensor I2C driver.