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

Configure Feed

Select the types of activity you want to include in your feed.

iio: dac: ds4424: add DS4402/DS4404 device IDs

Add I2C/OF IDs for DS4402 and DS4404 and set the correct channel count.
Follow-up changes add per-variant scaling based on external Rfs.

Co-developed-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de>
Signed-off-by: David Jander <david@protonic.nl>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>

authored by

David Jander and committed by
Jonathan Cameron
1fa14dd1 a7622a65

+14
+14
drivers/iio/dac/ds4424.c
··· 39 39 u8 num_channels; 40 40 }; 41 41 42 + static const struct ds4424_chip_info ds4402_info = { 43 + .name = "ds4402", 44 + .num_channels = DS4422_MAX_DAC_CHANNELS, 45 + }; 46 + 47 + static const struct ds4424_chip_info ds4404_info = { 48 + .name = "ds4404", 49 + .num_channels = DS4424_MAX_DAC_CHANNELS, 50 + }; 51 + 42 52 static const struct ds4424_chip_info ds4422_info = { 43 53 .name = "ds4422", 44 54 .num_channels = DS4422_MAX_DAC_CHANNELS, ··· 295 285 } 296 286 297 287 static const struct i2c_device_id ds4424_id[] = { 288 + { "ds4402", (kernel_ulong_t)&ds4402_info }, 289 + { "ds4404", (kernel_ulong_t)&ds4404_info }, 298 290 { "ds4422", (kernel_ulong_t)&ds4422_info }, 299 291 { "ds4424", (kernel_ulong_t)&ds4424_info }, 300 292 { } ··· 305 293 MODULE_DEVICE_TABLE(i2c, ds4424_id); 306 294 307 295 static const struct of_device_id ds4424_of_match[] = { 296 + { .compatible = "maxim,ds4402", .data = &ds4402_info }, 297 + { .compatible = "maxim,ds4404", .data = &ds4404_info }, 308 298 { .compatible = "maxim,ds4422", .data = &ds4422_info }, 309 299 { .compatible = "maxim,ds4424", .data = &ds4424_info }, 310 300 { }