mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
sunxi: axp: Change axp_gpio_foo prototypes to match gpio uclass ops
Change the axp_gpio_foo function prototypes to match the gpio uclass op prototypes, this is a preparation patch for moving the axp gpio code to a separate driver-model gpio driver. Note that the ugly calls with a NULL udev pointer in drivers/gpio/sunxi_gpio.c this adds are removed in a later patch. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Reviewed-by: Simon Glass <sjg@chromium.org> Acked-by: Ian Campbell <ijc@hellion.org.uk>
This commit is contained in:
@ -4,6 +4,8 @@
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
struct udevice;
|
||||
|
||||
enum axp209_reg {
|
||||
AXP209_POWER_STATUS = 0x00,
|
||||
AXP209_CHIP_VERSION = 0x03,
|
||||
@ -53,7 +55,7 @@ extern int axp209_init(void);
|
||||
extern int axp209_poweron_by_dc(void);
|
||||
extern int axp209_power_button(void);
|
||||
|
||||
extern int axp_gpio_direction_input(unsigned int pin);
|
||||
extern int axp_gpio_direction_output(unsigned int pin, unsigned int val);
|
||||
extern int axp_gpio_get_value(unsigned int pin);
|
||||
extern int axp_gpio_set_value(unsigned int pin, unsigned int val);
|
||||
extern int axp_gpio_direction_input(struct udevice *dev, unsigned offset);
|
||||
extern int axp_gpio_direction_output(struct udevice *dev, unsigned offset, int val);
|
||||
extern int axp_gpio_get_value(struct udevice *dev, unsigned offset);
|
||||
extern int axp_gpio_set_value(struct udevice *dev, unsigned offset, int val);
|
||||
|
Reference in New Issue
Block a user