Re: sysfs in cdev

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 12, 2005 at 08:58:15PM +0200, Hinko Kocevar wrote:
> Greg KH wrote:
> >>
> >>Are you suggesting that I should embedd both struct cdev and struct 
> >>device in my struct my_device?
> >
> >
> >Um, no.  The bus your device is on should take care of the struct device
> >stuff.  What kind of driver are you writing?  Have a pointer to the
> >code?
> 
> It is SPI datakey flash device driver.

Then I suggest you work with the developer who is posting patches to
linux-kernel about creating a SPI subsystem.  That would make your life
a whole lot easier (don't have to create the individual devices, bus
stuff is done for you, sysfs stuff is done for you, etc.)

Good luck,

greg k-h

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux