All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
@ 2017-08-02 14:05 H. Nikolaus Schaller
  2017-08-02 15:41 ` Arnd Bergmann
  2017-08-02 15:57 ` Greg Kroah-Hartman
  0 siblings, 2 replies; 7+ messages in thread
From: H. Nikolaus Schaller @ 2017-08-02 14:05 UTC (permalink / raw)
  To: Arnd Bergmann, Greg Kroah-Hartman
  Cc: Letux-kernel, linux-kernel, H. Nikolaus Schaller

fix missing tristate prompt and add help for LIS3LV02D

Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
---
 drivers/misc/Kconfig | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
index 8136dc7e863d..41781d61eac7 100644
--- a/drivers/misc/Kconfig
+++ b/drivers/misc/Kconfig
@@ -5,10 +5,13 @@
 menu "Misc devices"
 
 config SENSORS_LIS3LV02D
-	tristate
+	tristate "support STMicroelectronics Sensor LIS3LV02D"
 	depends on INPUT
 	select INPUT_POLLDEV
 	default n
+	help
+	  If you say yes here, you get support for the STM
+	  LIS3LV02D sensor.
 
 config AD525X_DPOT
 	tristate "Analog Devices Digital Potentiometers"
-- 
2.12.2

^ permalink raw reply related	[flat|nested] 7+ messages in thread

* Re: [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 14:05 [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D H. Nikolaus Schaller
@ 2017-08-02 15:41 ` Arnd Bergmann
  2017-08-02 15:57 ` Greg Kroah-Hartman
  1 sibling, 0 replies; 7+ messages in thread
From: Arnd Bergmann @ 2017-08-02 15:41 UTC (permalink / raw)
  To: H. Nikolaus Schaller
  Cc: Greg Kroah-Hartman, Letux-kernel, Linux Kernel Mailing List

On Wed, Aug 2, 2017 at 4:05 PM, H. Nikolaus Schaller <hns@goldelico.com> wrote:
> fix missing tristate prompt and add help for LIS3LV02D

Should there be another patch to change the 'select SENSORS_LIS3LV02D'
statements to 'depends on'? Generally speaking, we should avoid selecting
user visible symbols.

       Arnd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 14:05 [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D H. Nikolaus Schaller
  2017-08-02 15:41 ` Arnd Bergmann
@ 2017-08-02 15:57 ` Greg Kroah-Hartman
  2017-08-02 16:01   ` H. Nikolaus Schaller
  2017-08-02 16:06   ` Arnd Bergmann
  1 sibling, 2 replies; 7+ messages in thread
From: Greg Kroah-Hartman @ 2017-08-02 15:57 UTC (permalink / raw)
  To: H. Nikolaus Schaller; +Cc: Arnd Bergmann, Letux-kernel, linux-kernel

On Wed, Aug 02, 2017 at 04:05:36PM +0200, H. Nikolaus Schaller wrote:
> fix missing tristate prompt and add help for LIS3LV02D
> 
> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
> ---
>  drivers/misc/Kconfig | 5 ++++-
>  1 file changed, 4 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
> index 8136dc7e863d..41781d61eac7 100644
> --- a/drivers/misc/Kconfig
> +++ b/drivers/misc/Kconfig
> @@ -5,10 +5,13 @@
>  menu "Misc devices"
>  
>  config SENSORS_LIS3LV02D
> -	tristate
> +	tristate "support STMicroelectronics Sensor LIS3LV02D"
>  	depends on INPUT
>  	select INPUT_POLLDEV
>  	default n

"default n" can be removed as that is the deafule.

> +	help
> +	  If you say yes here, you get support for the STM
> +	  LIS3LV02D sensor.

No name for what the module is called?

thanks,

greg k-h

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 15:57 ` Greg Kroah-Hartman
@ 2017-08-02 16:01   ` H. Nikolaus Schaller
  2017-08-02 16:06   ` Arnd Bergmann
  1 sibling, 0 replies; 7+ messages in thread
From: H. Nikolaus Schaller @ 2017-08-02 16:01 UTC (permalink / raw)
  To: Greg Kroah-Hartman; +Cc: Arnd Bergmann, Letux-kernel, linux-kernel

Hi,

> Am 02.08.2017 um 17:57 schrieb Greg Kroah-Hartman <gregkh@linuxfoundation.org>:
> 
> On Wed, Aug 02, 2017 at 04:05:36PM +0200, H. Nikolaus Schaller wrote:
>> fix missing tristate prompt and add help for LIS3LV02D
>> 
>> Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
>> ---
>> drivers/misc/Kconfig | 5 ++++-
>> 1 file changed, 4 insertions(+), 1 deletion(-)
>> 
>> diff --git a/drivers/misc/Kconfig b/drivers/misc/Kconfig
>> index 8136dc7e863d..41781d61eac7 100644
>> --- a/drivers/misc/Kconfig
>> +++ b/drivers/misc/Kconfig
>> @@ -5,10 +5,13 @@
>> menu "Misc devices"
>> 
>> config SENSORS_LIS3LV02D
>> -	tristate
>> +	tristate "support STMicroelectronics Sensor LIS3LV02D"
>> 	depends on INPUT
>> 	select INPUT_POLLDEV
>> 	default n
> 
> "default n" can be removed as that is the deafule.
> 
>> +	help
>> +	  If you say yes here, you get support for the STM
>> +	  LIS3LV02D sensor.
> 
> No name for what the module is called?

Well, I am not the author of the driver. I just noticed that the Kconfig record
is incomplete. But I will research.

BR and thanks,
Nikolaus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 15:57 ` Greg Kroah-Hartman
  2017-08-02 16:01   ` H. Nikolaus Schaller
@ 2017-08-02 16:06   ` Arnd Bergmann
  2017-08-02 16:13     ` H. Nikolaus Schaller
  1 sibling, 1 reply; 7+ messages in thread
From: Arnd Bergmann @ 2017-08-02 16:06 UTC (permalink / raw)
  To: Greg Kroah-Hartman
  Cc: H. Nikolaus Schaller, Letux-kernel, Linux Kernel Mailing List

On Wed, Aug 2, 2017 at 5:57 PM, Greg Kroah-Hartman
<gregkh@linuxfoundation.org> wrote:
> On Wed, Aug 02, 2017 at 04:05:36PM +0200, H. Nikolaus Schaller wrote:
>> +     help
>> +       If you say yes here, you get support for the STM
>> +       LIS3LV02D sensor.
>
> No name for what the module is called?

Not sure if that's even relevant here, as the symbol only controls the
base driver that doesn't do anything by itself, while the LIS3_SPI/LIS3_I2C
Kconfig symbols are the interesting ones.

The help text should also reflect that I think and explain why you would
enable the symbol in the first place (which the patch description doesn't
either).

      Arnd

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 16:06   ` Arnd Bergmann
@ 2017-08-02 16:13     ` H. Nikolaus Schaller
  2017-08-02 18:57       ` [Letux-kernel] " H. Nikolaus Schaller
  0 siblings, 1 reply; 7+ messages in thread
From: H. Nikolaus Schaller @ 2017-08-02 16:13 UTC (permalink / raw)
  To: Arnd Bergmann; +Cc: Greg Kroah-Hartman, Letux-kernel, Linux Kernel Mailing List

Hi,

> Am 02.08.2017 um 18:06 schrieb Arnd Bergmann <arnd@arndb.de>:
> 
> On Wed, Aug 2, 2017 at 5:57 PM, Greg Kroah-Hartman
> <gregkh@linuxfoundation.org> wrote:
>> On Wed, Aug 02, 2017 at 04:05:36PM +0200, H. Nikolaus Schaller wrote:
>>> +     help
>>> +       If you say yes here, you get support for the STM
>>> +       LIS3LV02D sensor.
>> 
>> No name for what the module is called?
> 
> Not sure if that's even relevant here, as the symbol only controls the
> base driver that doesn't do anything by itself, while the LIS3_SPI/LIS3_I2C
> Kconfig symbols are the interesting ones.
> 
> The help text should also reflect that I think and explain why you would
> enable the symbol in the first place (which the patch description doesn't
> either).

Hm. I start to no longer understand how this LIS302 is configured at all
and what SENSORS_LIS3LV02D is good for.

I just noticed while preparing some other driver/misc that there is no
description in the drivers/misc/Kconfig file while all other CONFIGs have some.

But configuring LIS302 works (we have some GTA04 boards where one is installed).

BR and thanks,
Nikolaus

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Letux-kernel] [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D
  2017-08-02 16:13     ` H. Nikolaus Schaller
@ 2017-08-02 18:57       ` H. Nikolaus Schaller
  0 siblings, 0 replies; 7+ messages in thread
From: H. Nikolaus Schaller @ 2017-08-02 18:57 UTC (permalink / raw)
  To: Discussions about the Letux Kernel
  Cc: Arnd Bergmann, Greg Kroah-Hartman, Linux Kernel Mailing List


> Am 02.08.2017 um 18:13 schrieb H. Nikolaus Schaller <hns@goldelico.com>:
> 
> Hi,
> 
>> Am 02.08.2017 um 18:06 schrieb Arnd Bergmann <arnd@arndb.de>:
>> 
>> On Wed, Aug 2, 2017 at 5:57 PM, Greg Kroah-Hartman
>> <gregkh@linuxfoundation.org> wrote:
>>> On Wed, Aug 02, 2017 at 04:05:36PM +0200, H. Nikolaus Schaller wrote:
>>>> +     help
>>>> +       If you say yes here, you get support for the STM
>>>> +       LIS3LV02D sensor.
>>> 
>>> No name for what the module is called?
>> 
>> Not sure if that's even relevant here, as the symbol only controls the
>> base driver that doesn't do anything by itself, while the LIS3_SPI/LIS3_I2C
>> Kconfig symbols are the interesting ones.
>> 
>> The help text should also reflect that I think and explain why you would
>> enable the symbol in the first place (which the patch description doesn't
>> either).
> 
> Hm. I start to no longer understand how this LIS302 is configured at all
> and what SENSORS_LIS3LV02D is good for.
> 
> I just noticed while preparing some other driver/misc that there is no
> description in the drivers/misc/Kconfig file while all other CONFIGs have some.
> 
> But configuring LIS302 works (we have some GTA04 boards where one is installed).

Ok, I got it.

The config SENSORS_LIS3LV02D is like a temporary variable to build and link
the lis3lv02d.o core if either SPI or I2C is enabled.

And there is a not very obvious feature that if there is no tristate prompt,
the whole variable is hidden. Quite confusing but correct and therefore we should
not add one. And if it is not shown, we do not need a help.

If we apply my proposed patch, the variable becomes separately configurable and
you can e.g. set SENSORS_LIS3LV02D=m and CONFIG_SENSORS_LIS3_I2C=y which confuses
the linker.

So we should leave it as it is and ignore this patch.

BR and thanks for enlightening me,
Nikolaus

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-02 18:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-02 14:05 [PATCH] misc: Kconfig: fix missing tristate prompt and add help for LIS3LV02D H. Nikolaus Schaller
2017-08-02 15:41 ` Arnd Bergmann
2017-08-02 15:57 ` Greg Kroah-Hartman
2017-08-02 16:01   ` H. Nikolaus Schaller
2017-08-02 16:06   ` Arnd Bergmann
2017-08-02 16:13     ` H. Nikolaus Schaller
2017-08-02 18:57       ` [Letux-kernel] " H. Nikolaus Schaller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.