Re: [PATCH 2/11] LED: Add LED Class
- From: Richard Purdie <rpurdie@xxxxxxxxx>
- Date: Tue, 31 Jan 2006 21:41:37 +0000
On Tue, 2006-01-31 at 12:59 -0800, Greg KH wrote:
> On Tue, Jan 31, 2006 at 01:41:28PM +0000, Richard Purdie wrote:
> > +/**
> > + * led_device_register - register a new object of led_device class.
> > + * @dev: The device to register.
> > + * @led_dev: the led_device structure for this device.
> > + */
> > +int led_device_register(struct device *dev, struct led_device *led_dev)
>
> Shouldn't struct led_device contain a struct device within it, like the
> rest of the driver model?
The code supports more than one led per struct device.
Perhaps the name is misleading and should be led_class_register? The
code has changed a lot through its various development stages (it did
start out as a device IIRC).
led_device should also probably be led_class by that argument...
Richard
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- References:
- [PATCH 2/11] LED: Add LED Class
- From: Richard Purdie
- Re: [PATCH 2/11] LED: Add LED Class
- From: Greg KH
- [PATCH 2/11] LED: Add LED Class
- Prev by Date: Re: [2.6 patch] drivers/input/: make some functions static
- Next by Date: Re: [2.6 patch] ISDN_CAPI_CAPIFS related cleanups
- Previous by thread: Re: [PATCH 2/11] LED: Add LED Class
- Next by thread: [PATCH 4/11] LED: Add LED Timer Trigger
- Index(es):
Relevant Pages
- Re: [PATCH 2/11] LED: Add LED Class
... >> rest of the driver model? ... > The code supports more than one
led per struct device. ... To unsubscribe from this list: send the line "unsubscribe
linux-kernel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: [PATCH 2/11] LED: Add LED Class
... Shouldn't struct led_device contain a struct device within it, ... rest of the
driver model? ... Prev by Date: ... (Linux-Kernel) - Re: [RFC][PATCH] PM: Add pm_trace switch
... +#ifdef CONFIG_PM_TRACE ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - Re: No dma_sync_* during pci_probe? (Sparc, post 2.6.22 regression)
... I bet dev_archdata in whatever "struct device" is being passed in has ... a
NULL iommu pointer or something like that. ... More majordomo info at http://vger.kernel.org/majordomo-info.html
... Please read the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel) - [PATCH 32/47] Driver core: add ability for devices to create and remove bin files
... so they don't have to call directly into sysfs. ... with the conversion from
struct class_device to struct device. ... * @dev: device. ... Please read
the FAQ at http://www.tux.org/lkml/ ... (Linux-Kernel)