On 5/29/24 23:37, Nuno Sá wrote: [ ... ]
+static ssize_t pec_show(struct device *dev, struct device_attribute *dummy, + char *buf) +{ + struct i2c_client *client = to_i2c_client(dev); + + return sprintf(buf, "%d\n", !!(client->flags & I2C_CLIENT_PEC));sysfs_emit()?
Done.
with the above, Acked-by: Nuno Sa <nuno.sa@xxxxxxxxxx>
Thanks! Guenter