Instead of passing GPIO numbers pertaining to ourselves through platform data, just request GPIO descriptors from our own GPIO chips and use them, and cut down on the unnecessary complexity. Cc: Aaro Koskinen <aaro.koskinen@iki.fi> Cc: Janusz Krzysztofik <jmkrzyszt@gmail.com> Cc: Tony Lindgren <tony@atomide.com> Cc: Cory Maccarrone <darkstar6262@gmail.com> Cc: linux-omap@vger.kernel.org Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Lee Jones <lee@kernel.org> Link: https://lore.kernel.org/r/20220905115810.5987-1-linus.walleij@linaro.org
24 lines
509 B
C
24 lines
509 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef __LINUX_HTCPLD_H
|
|
#define __LINUX_HTCPLD_H
|
|
|
|
struct htcpld_chip_platform_data {
|
|
unsigned int addr;
|
|
unsigned int reset;
|
|
unsigned int num_gpios;
|
|
unsigned int gpio_out_base;
|
|
unsigned int gpio_in_base;
|
|
unsigned int irq_base;
|
|
unsigned int num_irqs;
|
|
};
|
|
|
|
struct htcpld_core_platform_data {
|
|
unsigned int i2c_adapter_id;
|
|
|
|
struct htcpld_chip_platform_data *chip;
|
|
unsigned int num_chip;
|
|
};
|
|
|
|
#endif /* __LINUX_HTCPLD_H */
|
|
|