Re: [PATCH 1/8] LinuxPPS core support.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Rodolfo Giometti <giometti@...>
Cc: <linux-kernel@...>, Andrew Morton <akpm@...>, David Woodhouse <dwmw2@...>, Dave Jones <davej@...>
Date: Monday, February 11, 2008 - 11:25 am

On Mon, Feb 11, 2008 at 10:53:46AM +0100, Rodolfo Giometti wrote:

If you use a 'struct device' you can use a default attribute group for
that device to be created whenever it is added.

However you are not using the driver core that way, you are just calling
device_create(), which doesn't work that way.

But you can just use an attribute group instead, which still saves you a
lot of code, try using that instead (sysfs_create_group()).

Or go all the way and embed a 'struct device' in your structure, and
create a bus, then you can use the default attribute group, although
that might be a bit more work :)

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
LinuxPPS: the PPS Linux implementation., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 1/8] LinuxPPS core support., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
Re: [PATCH 1/8] LinuxPPS core support., Greg KH, (Sat Feb 9, 2:45 am)
Re: [PATCH 1/8] LinuxPPS core support., Rodolfo Giometti, (Mon Feb 11, 5:53 am)
Re: [PATCH 1/8] LinuxPPS core support., Greg KH, (Mon Feb 11, 11:25 am)
Re: [PATCH 1/8] LinuxPPS core support., Rodolfo Giometti, (Mon Feb 11, 2:31 pm)
Re: [PATCH 1/8] LinuxPPS core support., Rodolfo Giometti, (Mon Feb 11, 2:42 pm)
Re: [PATCH 1/8] LinuxPPS core support., Sam Ravnborg, (Fri Feb 8, 3:11 pm)
[PATCH 2/8] PPS: basic documentation file., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 3/8] PPS: userland header file for PPS API., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 4/8] PPS: documentation programs and examples., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 5/8] PPS: LinuxPPS clients support., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 6/8] PPS: serial clients support., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)
[PATCH 8/8] PPS: parallel port clients support., Rodolfo Giometti, (Fri Feb 8, 2:00 pm)