Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Tue, Jun 18, 2013 at 01:54:26AM +0200, Andi Shyti wrote:
> > > > > The driver generates an event in /dev/input/ under the name
> > > > > 'bh1770'. It's a switch event where is reported '0' or '1'
> > > > > whenever the sensor detects something crossing the threshold.
> > > > > 
> > > > Doesn't this mean that this driver is now an "input" driver, so it
> > > > shouldn't be using the odd sysfs api, and should move to the
> > > > drivers/input/ directory tree?
> > > 
> > > The driver has also lots of interfaces in
> > > sysfs that are used from userspace, like proximity value and
> > > ambient light value.
> > > 
> > > What the input interface provides is just one of the features
> > > from the driver. Shall I move it anyway?
> > 
> > Hm, why not make it an iio driver instead?  That way you get input and
> > sysfs all together.
> 
> I'll do my best to get the hardware I need, then, so that once I
> do it I'll do it fully correct :)
> 
> Then, just ignore this patches and I'll come later with a new
> patchset.
> 
> But I still wonder: this is a combined proximity/ambient light
> sensor, where exactly should I move it? Is it correct to create a
> new directory for combined sensors?

Ask the iio developers, they will know best here.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
> > > > The driver generates an event in /dev/input/ under the name
> > > > 'bh1770'. It's a switch event where is reported '0' or '1'
> > > > whenever the sensor detects something crossing the threshold.
> > > > 
> > > Doesn't this mean that this driver is now an "input" driver, so it
> > > shouldn't be using the odd sysfs api, and should move to the
> > > drivers/input/ directory tree?
> > 
> > The driver has also lots of interfaces in
> > sysfs that are used from userspace, like proximity value and
> > ambient light value.
> > 
> > What the input interface provides is just one of the features
> > from the driver. Shall I move it anyway?
> 
> Hm, why not make it an iio driver instead?  That way you get input and
> sysfs all together.

I'll do my best to get the hardware I need, then, so that once I
do it I'll do it fully correct :)

Then, just ignore this patches and I'll come later with a new
patchset.

But I still wonder: this is a combined proximity/ambient light
sensor, where exactly should I move it? Is it correct to create a
new directory for combined sensors?

Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Tue, Jun 18, 2013 at 01:27:39AM +0200, Andi Shyti wrote:
> Hi Greg,
> 
> > > The driver generates an event in /dev/input/ under the name
> > > 'bh1770'. It's a switch event where is reported '0' or '1'
> > > whenever the sensor detects something crossing the threshold.
> > > 
> > > Signed-off-by: Onur Atilla 
> > > Signed-off-by: Phil Carmody 
> > > Signed-off-by: Andi Shyti 
> > > ---
> > >  drivers/misc/bh1770glc.c |   58 
> > > +-
> > >  1 file changed, 57 insertions(+), 1 deletion(-)
> > 
> > Doesn't this mean that this driver is now an "input" driver, so it
> > shouldn't be using the odd sysfs api, and should move to the
> > drivers/input/ directory tree?
> 
> The driver has also lots of interfaces in
> sysfs that are used from userspace, like proximity value and
> ambient light value.
> 
> What the input interface provides is just one of the features
> from the driver. Shall I move it anyway?

Hm, why not make it an iio driver instead?  That way you get input and
sysfs all together.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
Hi Greg,

> > The driver generates an event in /dev/input/ under the name
> > 'bh1770'. It's a switch event where is reported '0' or '1'
> > whenever the sensor detects something crossing the threshold.
> > 
> > Signed-off-by: Onur Atilla 
> > Signed-off-by: Phil Carmody 
> > Signed-off-by: Andi Shyti 
> > ---
> >  drivers/misc/bh1770glc.c |   58 
> > +-
> >  1 file changed, 57 insertions(+), 1 deletion(-)
> 
> Doesn't this mean that this driver is now an "input" driver, so it
> shouldn't be using the odd sysfs api, and should move to the
> drivers/input/ directory tree?

The driver has also lots of interfaces in
sysfs that are used from userspace, like proximity value and
ambient light value.

What the input interface provides is just one of the features
from the driver. Shall I move it anyway?

Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Thu, Jun 13, 2013 at 08:20:35PM +0200, Andi Shyti wrote:
> The driver generates an event in /dev/input/ under the name
> 'bh1770'. It's a switch event where is reported '0' or '1'
> whenever the sensor detects something crossing the threshold.
> 
> Signed-off-by: Onur Atilla 
> Signed-off-by: Phil Carmody 
> Signed-off-by: Andi Shyti 
> ---
>  drivers/misc/bh1770glc.c |   58 
> +-
>  1 file changed, 57 insertions(+), 1 deletion(-)

Doesn't this mean that this driver is now an "input" driver, so it
shouldn't be using the odd sysfs api, and should move to the
drivers/input/ directory tree?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Thu, Jun 13, 2013 at 08:20:35PM +0200, Andi Shyti wrote:
 The driver generates an event in /dev/input/ under the name
 'bh1770'. It's a switch event where is reported '0' or '1'
 whenever the sensor detects something crossing the threshold.
 
 Signed-off-by: Onur Atilla oati...@gmail.com
 Signed-off-by: Phil Carmody p...@asdf.org
 Signed-off-by: Andi Shyti a...@etezian.org
 ---
  drivers/misc/bh1770glc.c |   58 
 +-
  1 file changed, 57 insertions(+), 1 deletion(-)

Doesn't this mean that this driver is now an input driver, so it
shouldn't be using the odd sysfs api, and should move to the
drivers/input/ directory tree?

thanks,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
Hi Greg,

  The driver generates an event in /dev/input/ under the name
  'bh1770'. It's a switch event where is reported '0' or '1'
  whenever the sensor detects something crossing the threshold.
  
  Signed-off-by: Onur Atilla oati...@gmail.com
  Signed-off-by: Phil Carmody p...@asdf.org
  Signed-off-by: Andi Shyti a...@etezian.org
  ---
   drivers/misc/bh1770glc.c |   58 
  +-
   1 file changed, 57 insertions(+), 1 deletion(-)
 
 Doesn't this mean that this driver is now an input driver, so it
 shouldn't be using the odd sysfs api, and should move to the
 drivers/input/ directory tree?

The driver has also lots of interfaces in
sysfs that are used from userspace, like proximity value and
ambient light value.

What the input interface provides is just one of the features
from the driver. Shall I move it anyway?

Andi
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Tue, Jun 18, 2013 at 01:27:39AM +0200, Andi Shyti wrote:
 Hi Greg,
 
   The driver generates an event in /dev/input/ under the name
   'bh1770'. It's a switch event where is reported '0' or '1'
   whenever the sensor detects something crossing the threshold.
   
   Signed-off-by: Onur Atilla oati...@gmail.com
   Signed-off-by: Phil Carmody p...@asdf.org
   Signed-off-by: Andi Shyti a...@etezian.org
   ---
drivers/misc/bh1770glc.c |   58 
   +-
1 file changed, 57 insertions(+), 1 deletion(-)
  
  Doesn't this mean that this driver is now an input driver, so it
  shouldn't be using the odd sysfs api, and should move to the
  drivers/input/ directory tree?
 
 The driver has also lots of interfaces in
 sysfs that are used from userspace, like proximity value and
 ambient light value.
 
 What the input interface provides is just one of the features
 from the driver. Shall I move it anyway?

Hm, why not make it an iio driver instead?  That way you get input and
sysfs all together.

thanks,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Andi Shyti
The driver generates an event in /dev/input/ under the name
'bh1770'. It's a switch event where is reported '0' or '1'
whenever the sensor detects something crossing the threshold.

   Doesn't this mean that this driver is now an input driver, so it
   shouldn't be using the odd sysfs api, and should move to the
   drivers/input/ directory tree?
  
  The driver has also lots of interfaces in
  sysfs that are used from userspace, like proximity value and
  ambient light value.
  
  What the input interface provides is just one of the features
  from the driver. Shall I move it anyway?
 
 Hm, why not make it an iio driver instead?  That way you get input and
 sysfs all together.

I'll do my best to get the hardware I need, then, so that once I
do it I'll do it fully correct :)

Then, just ignore this patches and I'll come later with a new
patchset.

But I still wonder: this is a combined proximity/ambient light
sensor, where exactly should I move it? Is it correct to create a
new directory for combined sensors?

Andi
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


Re: [PATCH 01/19] bh1770glc: added input device interface

2013-06-17 Thread Greg KH
On Tue, Jun 18, 2013 at 01:54:26AM +0200, Andi Shyti wrote:
 The driver generates an event in /dev/input/ under the name
 'bh1770'. It's a switch event where is reported '0' or '1'
 whenever the sensor detects something crossing the threshold.
 
Doesn't this mean that this driver is now an input driver, so it
shouldn't be using the odd sysfs api, and should move to the
drivers/input/ directory tree?
   
   The driver has also lots of interfaces in
   sysfs that are used from userspace, like proximity value and
   ambient light value.
   
   What the input interface provides is just one of the features
   from the driver. Shall I move it anyway?
  
  Hm, why not make it an iio driver instead?  That way you get input and
  sysfs all together.
 
 I'll do my best to get the hardware I need, then, so that once I
 do it I'll do it fully correct :)
 
 Then, just ignore this patches and I'll come later with a new
 patchset.
 
 But I still wonder: this is a combined proximity/ambient light
 sensor, where exactly should I move it? Is it correct to create a
 new directory for combined sensors?

Ask the iio developers, they will know best here.

thanks,

greg k-h
--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/