[PATCHv2 0/4] net: rfkill: gpio: replace platform data with build-in property

2016-01-25 Thread Heikki Krogerus
Hi, The changes to the unified properties interface that I have been waiting for are finally available in v4.5-rc1. Heikki Krogerus (4): net: rfkill: add rfkill_find_type function net: rfkill: gpio: get the name and type from device property ARM: tegra: use build-in device properties with

[PATCHv2 4/4] net: rfkill: gpio: remove rfkill_gpio_platform_data

2016-01-25 Thread Heikki Krogerus
No more users for it. Signed-off-by: Heikki Krogerus --- include/linux/rfkill-gpio.h | 37 - net/rfkill/Kconfig | 3 +-- net/rfkill/rfkill-gpio.c| 8 3 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 include/linux

[PATCHv2 3/4] ARM: tegra: use build-in device properties with rfkill_gpio

2016-01-25 Thread Heikki Krogerus
Pass the rfkill name and type to the device with properties instead of driver specific platform data. Signed-off-by: Heikki Krogerus CC: Alexandre Courbot CC: Thierry Reding CC: Stephen Warren --- arch/arm/mach-tegra/board-paz00.c | 17 ++--- 1 file changed, 10 insertions(+), 7

[PATCHv2 1/4] net: rfkill: add rfkill_find_type function

2016-01-25 Thread Heikki Krogerus
Helper for finding the type based on name. Useful if the type needs to be determined based on device property. Signed-off-by: Heikki Krogerus --- include/linux/rfkill.h | 15 + net/rfkill/core.c | 57 +- 2 files changed, 44

[PATCHv2 2/4] net: rfkill: gpio: get the name and type from device property

2016-01-25 Thread Heikki Krogerus
This prepares the driver for removal of platform data. Signed-off-by: Heikki Krogerus --- net/rfkill/rfkill-gpio.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c index 4b1e3f3..1a9c031 100644 --- a/net

[PATCH 5/5] net: rfkill: gpio: remove rfkill_gpio_platform_data

2015-08-05 Thread Heikki Krogerus
No more users for it. Signed-off-by: Heikki Krogerus --- include/linux/rfkill-gpio.h | 37 - net/rfkill/Kconfig | 3 +-- net/rfkill/rfkill-gpio.c| 8 3 files changed, 1 insertion(+), 47 deletions(-) delete mode 100644 include/linux

[PATCH 2/5] net: rfkill: add rfkill_find_type function

2015-08-05 Thread Heikki Krogerus
Helper for finding the type based on name. Useful if the type needs to be determined based on device property. Signed-off-by: Heikki Krogerus --- include/linux/rfkill.h | 15 + net/rfkill/core.c | 57 +- 2 files changed, 44

[PATCH 4/5] ARM: tegra: use build-in device properties with rfkill_gpio

2015-08-05 Thread Heikki Krogerus
Pass the rfkill name and type to the device with properties instead of driver specific platform data. Signed-off-by: Heikki Krogerus CC: Alexandre Courbot CC: Thierry Reding CC: Stephen Warren --- arch/arm/mach-tegra/board-paz00.c | 17 ++--- 1 file changed, 10 insertions(+), 7

[PATCH 0/5] net: rfkill: gpio: replace platform data with build-in property

2015-08-05 Thread Heikki Krogerus
The first patch adds a few helper macros for build-in property creation and the second makes it possible to get the rfkill type index based on name. The rest deal with rfkill-gpio. Cheers, Heikki Krogerus (5): device property: helper macros for property entry creation net: rfkill: add

[PATCH 1/5] device property: helper macros for property entry creation

2015-08-05 Thread Heikki Krogerus
Marcos for easier creation of build-in property entries. Signed-off-by: Heikki Krogerus --- include/linux/property.h | 35 +++ 1 file changed, 35 insertions(+) diff --git a/include/linux/property.h b/include/linux/property.h index 76ebde9..204d899 100644 --- a

[PATCH 3/5] net: rfkill: gpio: get the name and type from device property

2015-08-05 Thread Heikki Krogerus
This prepares the driver for removal of platform data. Signed-off-by: Heikki Krogerus --- net/rfkill/rfkill-gpio.c | 16 +++- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/net/rfkill/rfkill-gpio.c b/net/rfkill/rfkill-gpio.c index d5d58d9..07323c3 100644 --- a/net

Re: [PATCH 5/5] net: rfkill: gpio: remove rfkill_gpio_platform_data

2015-08-06 Thread Heikki Krogerus
On Wed, Aug 05, 2015 at 05:15:28PM +0300, Andy Shevchenko wrote: > On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > > No more users for it. > > > > Signed-off-by: Heikki Krogerus > > --- > > include/linux/rfkill-gpio.h | 37 -

Re: [PATCH 1/5] device property: helper macros for property entry creation

2015-08-06 Thread Heikki Krogerus
On Wed, Aug 05, 2015 at 05:02:18PM +0300, Andy Shevchenko wrote: > On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > > Marcos for easier creation of build-in property entries. > > > > Signed-off-by: Heikki Krogerus > > --- > &g

Re: [PATCH 2/5] net: rfkill: add rfkill_find_type function

2015-08-06 Thread Heikki Krogerus
On Wed, Aug 05, 2015 at 05:07:29PM +0300, Andy Shevchenko wrote: > On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > > Helper for finding the type based on name. Useful if the > > type needs to be determined based on device property. > > > > Sig

Re: [PATCH 2/5] net: rfkill: add rfkill_find_type function

2015-08-13 Thread Heikki Krogerus
Hi, On Thu, Aug 13, 2015 at 11:27:46AM +0200, Johannes Berg wrote: > On Wed, 2015-08-05 at 16:39 +0300, Heikki Krogerus wrote: > > > > +static const char *rfkill_types[NUM_RFKILL_TYPES] = { > > + [RFKILL_TYPE_WLAN] = "wlan", > > +

Re: [PATCH] net: rfkill: gpio: fix memory leak in probe error path

2018-04-26 Thread Heikki Krogerus
On Thu, Apr 26, 2018 at 09:31:52AM +0200, Johan Hovold wrote: > Make sure to free the rfkill device in case registration fails during > probe. > > Fixes: 5e7ca3937fbe ("net: rfkill: gpio: convert to resource managed > allocation") > Cc: stable# 3.13 > Cc: Hei

Re: [PATCH v1] ACPI: Switch to use generic UUID API

2017-05-04 Thread Heikki Krogerus
Amir Goldstein > Cc: Jarkko Sakkinen > Cc: Jani Nikula > Cc: Ben Skeggs > Cc: Benjamin Tissoires > Cc: Joerg Roedel > Cc: Adrian Hunter > Cc: Yisen Zhuang > Cc: Bjorn Helgaas > Cc: Zhang Rui > Cc: Felipe Balbi > Cc: Mathias Nyman > Cc: Heikki Kroger