struct gb_gpio_controller {
struct gb_connection *connection;
- u8 version_major;
- u8 version_minor;
u8 line_max; /* max line number */
struct gb_gpio_line *lines;
container_of(chip, struct gb_gpio_controller, chip)
#define irq_data_to_gpio_chip(d) (d->domain->host_data)
-/* Define get_version() routine */
-define_get_version(gb_gpio_controller, GPIO);
-
static int gb_gpio_line_count_operation(struct gb_gpio_controller *ggc)
{
struct gb_gpio_line_count_response response;
{
int ret;
- /* First thing we need to do is check the version */
- ret = get_version(ggc);
- if (ret)
- return ret;
-
/* Now find out how many lines there are */
ret = gb_gpio_line_count_operation(ggc);
if (ret)