summaryrefslogtreecommitdiff
path: root/app/drivers/sensor/ec11/ec11.h
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-12-10 19:31:51 +0000
committerPete Johanson <peter@peterjohanson.com>2020-12-14 12:41:25 -0500
commit00ca0d2f1cb0a939e5207454d89c6d37ef9f45a6 (patch)
treef5c8b1fa7bed4838393576376140e8420f2e415b /app/drivers/sensor/ec11/ec11.h
parent1411092a7bb6e21e6e3a272737ad36d613e3b367 (diff)
refactor(app): replace `struct device *` with `const struct device *`
Replaced with RegExp: /(?<!const )(struct device \*)/g See: https://docs.zephyrproject.org/latest/releases/release-notes-2.4.html PR: #467
Diffstat (limited to 'app/drivers/sensor/ec11/ec11.h')
-rw-r--r--app/drivers/sensor/ec11/ec11.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/drivers/sensor/ec11/ec11.h b/app/drivers/sensor/ec11/ec11.h
index 029f66b..1cb9c5f 100644
--- a/app/drivers/sensor/ec11/ec11.h
+++ b/app/drivers/sensor/ec11/ec11.h
@@ -23,8 +23,8 @@ struct ec11_config {
};
struct ec11_data {
- struct device *a;
- struct device *b;
+ const struct device *a;
+ const struct device *b;
uint8_t ab_state;
int8_t pulses;
int8_t ticks;
@@ -33,7 +33,7 @@ struct ec11_data {
#ifdef CONFIG_EC11_TRIGGER
struct gpio_callback a_gpio_cb;
struct gpio_callback b_gpio_cb;
- struct device *dev;
+ const struct device *dev;
sensor_trigger_handler_t handler;
const struct sensor_trigger *trigger;
@@ -51,8 +51,8 @@ struct ec11_data {
#ifdef CONFIG_EC11_TRIGGER
-int ec11_trigger_set(struct device *dev, const struct sensor_trigger *trig,
+int ec11_trigger_set(const struct device *dev, const struct sensor_trigger *trig,
sensor_trigger_handler_t handler);
-int ec11_init_interrupt(struct device *dev);
+int ec11_init_interrupt(const struct device *dev);
#endif