On Sat, Feb 5, 2022 at 9:14 PM Hans de Goede <hdegoede@xxxxxxxxxx> wrote: > > The Asus ME176C + TF103C both have a lid-switch (for a cover in the ME176C > case), add a gpio-keys platform-device and platform-data describing the > lid-switch on both. USB ID change is not described here. ... +/* Asus ME176C and TF103C tablets shared data */ > +static struct gpio_keys_button asus_me176c_tf103c_lid = { > + .code = SW_LID, > + /* .gpio gets filled in by asus_me176c_tf103c_init() */ I'm wondering if we can switch gpio_keys*.c drivers to accept GPIO descriptor directly. > + .active_low = true, > + .desc = "lid_sw", > + .type = EV_SW, > + .wakeup = true, > + .debounce_interval = 50, > +}; -- With Best Regards, Andy Shevchenko