Re: [PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-02-09 Thread Stephen Boyd
Quoting Stephen Boyd (2021-02-06 19:21:39) > Quoting Jonathan Cameron (2021-02-06 08:17:11) > > On Tue, 2 Feb 2021 10:44:34 -0800 > > Stephen Boyd wrote: > > > > > +static struct platform_driver cros_ec_mkbp_proximity_driver = { > > > + .driver = { > > > + .name = "cros-ec-mkbp-p

Re: [PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-02-06 Thread Stephen Boyd
Quoting Jonathan Cameron (2021-02-06 08:17:11) > On Tue, 2 Feb 2021 10:44:34 -0800 > Stephen Boyd wrote: > > > +static struct platform_driver cros_ec_mkbp_proximity_driver = { > > + .driver = { > > + .name = "cros-ec-mkbp-proximity", > > + .of_match_table = > > of_ma

Re: [PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-02-06 Thread Jonathan Cameron
On Tue, 2 Feb 2021 10:44:34 -0800 Stephen Boyd wrote: > Add support for a ChromeOS EC proximity driver that exposes a "front" > proximity sensor via the IIO subsystem. The EC decides when front > proximity is near and sets an MKBP switch 'EC_MKBP_FRONT_PROXIMITY' to > notify the kernel of proxim

[PATCH v4 3/3] iio: proximity: Add a ChromeOS EC MKBP proximity driver

2021-02-02 Thread Stephen Boyd
Add support for a ChromeOS EC proximity driver that exposes a "front" proximity sensor via the IIO subsystem. The EC decides when front proximity is near and sets an MKBP switch 'EC_MKBP_FRONT_PROXIMITY' to notify the kernel of proximity. Similarly, when proximity detects something far away it sets