iio: accel: st_accel: Add LSM303C
authorStephan Gerhold <stephan@gerhold.net>
Fri, 6 Jan 2023 10:22:38 +0000 (11:22 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 8 Jan 2023 13:01:02 +0000 (13:01 +0000)
commit23fd6f0bd6cbf010216a078a99dcbaa30c8bb5ae
treeecd6689bd0a7e0ce5bf5e0fa42796e4a91051821
parent4aaf3e40272d9699d84b04f09aa6c2166b7e4aba
iio: accel: st_accel: Add LSM303C

The accelerometer part of ST LSM303C is similar (perhaps even identical)
to the already supported standalone LIS2HH12 accelerometer, so just
add the new st,lsm303c-accel compatible for the existing definitions.

Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230106102239.9647-3-stephan@gerhold.net
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/Kconfig
drivers/iio/accel/st_accel.h
drivers/iio/accel/st_accel_core.c
drivers/iio/accel/st_accel_i2c.c
drivers/iio/accel/st_accel_spi.c