There is now an IIO driver for GP2AP002A00F and GP2AP002S00F in drivers/iio/light/gp2ap002.c. Delete this driver, it is unused in the kernel tree and new users can make use of the IIO driver.
Showing the changes to include/linux (1 of 4 files). Show all
Unified · Split
| @@ -1,23 +0,0 @@ | ||
| 1 | −/* SPDX-License-Identifier: GPL-2.0 */ | |
| 2 | −#ifndef _GP2AP002A00F_H_ | |
| 3 | −#define _GP2AP002A00F_H_ | |
| 4 | − | |
| 5 | −#include <linux/i2c.h> | |
| 6 | − | |
| 7 | −#define GP2A_I2C_NAME "gp2ap002a00f" | |
| 8 | − | |
| 9 | −/** | |
| 10 | − * struct gp2a_platform_data - Sharp gp2ap002a00f proximity platform data | |
| 11 | − * @vout_gpio: The gpio connected to the object detected pin (VOUT) | |
| 12 | − * @wakeup: Set to true if the proximity can wake the device from suspend | |
| 13 | − * @hw_setup: Callback for setting up hardware such as gpios and vregs | |
| 14 | − * @hw_shutdown: Callback for properly shutting down hardware | |
| 15 | − */ | |
| 16 | −struct gp2a_platform_data { | |
| 17 | − int vout_gpio; | |
| 18 | − bool wakeup; | |
| 19 | − int (*hw_setup)(struct i2c_client *client); | |
| 20 | − int (*hw_shutdown)(struct i2c_client *client); | |
| 21 | −}; | |
| 22 | − | |
| 23 | −#endif | |