Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio: accel: fxls8962af: add fxls8967af support

fxls8967af is similar with fxls8962af, the only difference is the device id
change to 0x87.

Signed-off-by: Han Xu <han.xu@nxp.com>
Reviewed-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20241115-fxls-v2-4-95f3df9228ed@nxp.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

Han Xu and committed by
Jonathan Cameron
4cd85685 f7c0bc20

+9
+7
drivers/iio/accel/fxls8962af-core.c
··· 130 130 #define FXLS8962AF_DEVICE_ID 0x62 131 131 #define FXLS8964AF_DEVICE_ID 0x84 132 132 #define FXLS8974CF_DEVICE_ID 0x86 133 + #define FXLS8967AF_DEVICE_ID 0x87 133 134 134 135 /* Raw temp channel offset */ 135 136 #define FXLS8962AF_TEMP_CENTER_VAL 25 ··· 765 764 [fxls8964af] = { 766 765 .chip_id = FXLS8964AF_DEVICE_ID, 767 766 .name = "fxls8964af", 767 + .channels = fxls8962af_channels, 768 + .num_channels = ARRAY_SIZE(fxls8962af_channels), 769 + }, 770 + [fxls8967af] = { 771 + .chip_id = FXLS8967AF_DEVICE_ID, 772 + .name = "fxls8967af", 768 773 .channels = fxls8962af_channels, 769 774 .num_channels = ARRAY_SIZE(fxls8962af_channels), 770 775 },
+1
drivers/iio/accel/fxls8962af-i2c.c
··· 30 30 static const struct i2c_device_id fxls8962af_id[] = { 31 31 { "fxls8962af", fxls8962af }, 32 32 { "fxls8964af", fxls8964af }, 33 + { "fxls8967af", fxls8967af }, 33 34 { "fxls8974cf", fxls8974cf }, 34 35 {} 35 36 };
+1
drivers/iio/accel/fxls8962af.h
··· 11 11 enum { 12 12 fxls8962af, 13 13 fxls8964af, 14 + fxls8967af, 14 15 fxls8974cf, 15 16 }; 16 17