aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-i8255.h
diff options
context:
space:
mode:
authorGravatar William Breathitt Gray <william.gray@linaro.org> 2022-12-27 09:09:46 -0500
committerGravatar Bartosz Golaszewski <bartosz.golaszewski@linaro.org> 2023-01-30 15:55:28 +0100
commit6ecb741e349a909bc4c0430867d2e21bec56714e (patch)
treeed9d4b9cb321c413a9c25f201af38b5957abfaeb /drivers/gpio/gpio-i8255.h
parentgpio: gpio-mm: Migrate to regmap API (diff)
downloadlinux-6ecb741e349a909bc4c0430867d2e21bec56714e.tar.gz
linux-6ecb741e349a909bc4c0430867d2e21bec56714e.tar.bz2
linux-6ecb741e349a909bc4c0430867d2e21bec56714e.zip
gpio: i8255: Remove unused legacy interface
All i8255 library consumers have migrated to the new interface leveraging the gpio-regmap API. Legacy interface functions and code are removed as no longer needed. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: William Breathitt Gray <william.gray@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-i8255.h')
-rw-r--r--drivers/gpio/gpio-i8255.h40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpio/gpio-i8255.h b/drivers/gpio/gpio-i8255.h
index 3daa0b145890..9dcf639b94df 100644
--- a/drivers/gpio/gpio-i8255.h
+++ b/drivers/gpio/gpio-i8255.h
@@ -3,29 +3,6 @@
#ifndef _I8255_H_
#define _I8255_H_
-#include <linux/spinlock.h>
-#include <linux/types.h>
-
-/**
- * struct i8255 - Intel 8255 register structure
- * @port: Port A, B, and C
- * @control: Control register
- */
-struct i8255 {
- u8 port[3];
- u8 control;
-};
-
-/**
- * struct i8255_state - Intel 8255 state structure
- * @lock: synchronization lock for accessing device state
- * @control_state: Control register state
- */
-struct i8255_state {
- spinlock_t lock;
- u8 control_state;
-};
-
struct device;
struct irq_domain;
struct regmap;
@@ -54,21 +31,4 @@ struct i8255_regmap_config {
int devm_i8255_regmap_register(struct device *dev,
const struct i8255_regmap_config *config);
-void i8255_direction_input(struct i8255 __iomem *ppi, struct i8255_state *state,
- unsigned long offset);
-void i8255_direction_output(struct i8255 __iomem *ppi,
- struct i8255_state *state, unsigned long offset,
- unsigned long value);
-int i8255_get(struct i8255 __iomem *ppi, unsigned long offset);
-int i8255_get_direction(const struct i8255_state *state, unsigned long offset);
-void i8255_get_multiple(struct i8255 __iomem *ppi, const unsigned long *mask,
- unsigned long *bits, unsigned long ngpio);
-void i8255_mode0_output(struct i8255 __iomem *const ppi);
-void i8255_set(struct i8255 __iomem *ppi, struct i8255_state *state,
- unsigned long offset, unsigned long value);
-void i8255_set_multiple(struct i8255 __iomem *ppi, struct i8255_state *state,
- const unsigned long *mask, const unsigned long *bits,
- unsigned long ngpio);
-void i8255_state_init(struct i8255_state *const state, unsigned long nbanks);
-
#endif /* _I8255_H_ */