Le 16/02/2025 à 17:27, Svyatoslav Ryhel a écrit :
AL3000a is a simple I2C-based ambient light sensor, which is closely related to AL3010 and AL3320a, but has significantly different way of processing data generated by the sensor.
...
+static int al3000a_resume(struct device *dev) +{ + struct al3000a_data *data = iio_priv(dev_get_drvdata(dev)); + + return al3000a_set_pwr_on(data); +} + +static DEFINE_SIMPLE_DEV_PM_OPS(al3000a_pm_ops, al3000a_suspend, al3000a_resume); + +static const struct i2c_device_id al3000a_id[] = { + {"al3000a", },
Nitpick: missing leading space after {
+ {} +}; +MODULE_DEVICE_TABLE(i2c, al3010_id);