i2c: pxa: remove unused i2c-slave APIs
authorPatrick Williams <alpawi@amazon.com>
Tue, 1 Oct 2019 16:00:00 +0000 (11:00 -0500)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 11 Nov 2019 20:38:09 +0000 (21:38 +0100)
With the i2c-pxa driver migrated to the standard i2c-slave
APIs, the custom APIs and structures are no longer needed
or used.  Remove them.

Signed-off-by: Patrick Williams <alpawi@amazon.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-pxa.c
include/linux/i2c-pxa.h [deleted file]
include/linux/platform_data/i2c-pxa.h

index c811646..466e4f6 100644 (file)
@@ -25,7 +25,6 @@
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/interrupt.h>
-#include <linux/i2c-pxa.h>
 #include <linux/of.h>
 #include <linux/of_device.h>
 #include <linux/platform_device.h>
diff --git a/include/linux/i2c-pxa.h b/include/linux/i2c-pxa.h
deleted file mode 100644 (file)
index a897e2b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-#ifndef _LINUX_I2C_ALGO_PXA_H
-#define _LINUX_I2C_ALGO_PXA_H
-
-typedef enum i2c_slave_event_e {
-       I2C_SLAVE_EVENT_START_READ,
-       I2C_SLAVE_EVENT_START_WRITE,
-       I2C_SLAVE_EVENT_STOP
-} i2c_slave_event_t;
-
-struct i2c_slave_client {
-       void *data;
-       void (*event)(void *ptr, i2c_slave_event_t event);
-       int  (*read) (void *ptr);
-       void (*write)(void *ptr, unsigned int val);
-};
-
-#endif /* _LINUX_I2C_ALGO_PXA_H */
index cb29009..6a9b283 100644 (file)
  */
 #define I2C_ISR_INIT   0x7FF  /* status register init */
 
-struct i2c_slave_client;
-
 struct i2c_pxa_platform_data {
-       unsigned int            slave_addr;
-       struct i2c_slave_client *slave;
        unsigned int            class;
        unsigned int            use_pio :1;
        unsigned int            fast_mode :1;