aboutsummaryrefslogtreecommitdiff
path: root/driver/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/main.h')
-rw-r--r--driver/main.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/driver/main.h b/driver/main.h
index 059f277..bdc4e5d 100644
--- a/driver/main.h
+++ b/driver/main.h
@@ -28,3 +28,12 @@ struct i2c_driver lork_driver = {
.id_table = lork_ids,
};
+ssize_t drv_attr_show(struct device_driver*, char*);
+static const struct driver_attribute drv_attr = {
+ .attr = {
+ .name = "foo", // -> /sys/bus/i2c/drivers/lork/foo
+ .mode = 0444,
+ },
+ .show = drv_attr_show,
+};
+