Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1358592
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] misc: add nirtfeatures driver |
| Date | 2016-03-16 08:50 +0100 |
| Message-ID | <rdeno-5MN-3@gated-at.bofh.it> (permalink) |
| References | <rcIGS-151-5@gated-at.bofh.it> <rcIQy-1o0-13@gated-at.bofh.it> <rcJjA-1AB-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Mon, 14 Mar 2016, Josh Cartwright wrote:
> On Mon, Mar 14, 2016 at 03:05:59PM -0700, Greg KH wrote:
> > On Mon, Mar 14, 2016 at 04:54:32PM -0500, Kyle Roeschley wrote:
> > > From: Jeff Westfahl <jeff.westfahl@ni.com>
> > >
> > > This driver introduces support for hardware features of National
> > > Instruments real-time controllers. This is an ACPI device that exposes
> > > LEDs, switches, and watchdogs.
> >
> > If it's an acpi driver, why not put it in drivers/acpi?
>
> For the same reason we don't move all drivers for devices-on-a-PCI-bus
> into drivers/pci?
>
> Drivers typically exist in the sourcetree with other drivers which
> implement similar functionality, which works great for devices with
> clear functional boundaries (GPIO controller drivers in drivers/gpio,
> led drivers in drivers/leds, etc. etc.); but for devices which are a
> hodgepodge of functionality, there isn't really a good fit anywhere
> except maybe in misc or mfd.
>
> We could move it to mfd, but drivers in drivers/mfd which don't make use
> of MFD_CORE seems equally strange (although, I suppose there is
> precedent). Maybe Lee has some thoughts.
Is there any reason why the functionality can't be split up into
different source files? Create an LED driver, a Switch (whatever that
is) driver and a Watchdog driver, place them in drivers/{appropriate},
then register from each of them using the MFD API.
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 1/2] misc: add nirtfeatures driver Kyle Roeschley <kyle.roeschley@ni.com> - 2016-03-14 23:00 +0100
Re: [PATCH 1/2] misc: add nirtfeatures driver Greg KH <gregkh@linuxfoundation.org> - 2016-03-14 23:10 +0100
Re: [PATCH 1/2] misc: add nirtfeatures driver Josh Cartwright <joshc@ni.com> - 2016-03-14 23:40 +0100
Re: [PATCH 1/2] misc: add nirtfeatures driver Kyle Roeschley <kyle.roeschley@ni.com> - 2016-03-15 00:10 +0100
Re: [PATCH 1/2] misc: add nirtfeatures driver Lee Jones <lee.jones@linaro.org> - 2016-03-16 08:50 +0100
Re: [PATCH 1/2] misc: add nirtfeatures driver Kyle Roeschley <kyle.roeschley@ni.com> - 2016-03-16 23:50 +0100
csiph-web