Skip to contentSkip to conversation

Sysfs with no struc device ?

DISCUSSION Ayman KHAMOUMA 2 participants 2 messages Mar 31, 2009

lore
Share & tools
lore
#0 lore raw

Hi everybody,

I'm trying to write a module which is supposed to write the state of a pin in a sysfs file.
As it is neither a char device nor a block device, or anything else, I suposed taht I don't need any struct device...I mau be mistaking... So my question is:
How can I create this file in sysfs without any struct device ?

Regards,
Ayman

#1 lore raw
Quoted 6 lines · On Tue, 31 Mar 2009 18:19:41 +0200 Ayman KHAMOUMA <[email protected]> wrote:

Hi everybody,

I'm trying to write a module which is supposed to write the state of a pin in a sysfs file.
As it is neither a char device nor a block device, or anything else, I suposed taht I don't need any struct device...I mau be mistaking... So my question is:
How can I create this file in sysfs without any struct device ?

Wrong question I think - if its a platform device then create a platform_device for it ..