aboutsummaryrefslogtreecommitdiff
path: root/driver/platform.h
diff options
context:
space:
mode:
Diffstat (limited to 'driver/platform.h')
-rw-r--r--driver/platform.h41
1 files changed, 3 insertions, 38 deletions
diff --git a/driver/platform.h b/driver/platform.h
index ecac681..1173c3a 100644
--- a/driver/platform.h
+++ b/driver/platform.h
@@ -1,43 +1,8 @@
#pragma once
-#include <linux/types.h>
#include <linux/platform_device.h>
-#include <linux/slab.h>
+#include <linux/i2c.h>
-int lork_probe(struct platform_device*);
-int lork_remove(struct platform_device*);
-
-
-ssize_t drv_attr_int_show(struct device_driver*, char*);
-ssize_t drv_attr_int_store(struct device_driver*, const char*, size_t);
-static const struct driver_attribute drv_attr_int = {
- .attr = {
- .name = "int",
- .mode = 0644,
- },
- .show = drv_attr_int_show,
- .store = drv_attr_int_store,
-};
-
-ssize_t dev_attr_int_show(struct device*, struct device_attribute*, char*);
-ssize_t dev_attr_int_store(struct device*, struct device_attribute*, const char*, size_t);
-static const struct device_attribute dev_attr_int = {
- .attr = {
- .name = "int",
- .mode = 0644,
- },
- .show = dev_attr_int_show,
- .store = dev_attr_int_store,
-};
-
-ssize_t dev_attr_str_show(struct device*, struct device_attribute*, char*);
-ssize_t dev_attr_str_store(struct device*, struct device_attribute*, const char*, size_t);
-static const struct device_attribute dev_attr_str = {
- .attr = {
- .name = "str",
- .mode = 0644,
- },
- .show = dev_attr_str_show,
- .store = dev_attr_str_store,
-};
+int lork_probe(struct i2c_client *);
+void lork_remove(struct i2c_client *);