Re: [PATCH 2/6] staging: ft1000: Use misc device instead self created device.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Belisko Marek
Date: Wednesday, November 24, 2010 - 2:16 am

On Tue, Nov 23, 2010 at 10:28 PM, Jiri Slaby <jirislaby@gmail.com> wrote:
Could be used something like:
register_chrdev(0,"ft1000", &fops)
class = class_create(THIS_MODULE, "ft1000");
device_create(class, NULL, MKDEV(major, i), NULL, "ft1000%d", i);
Then will be created different devices for every plugged device.
This should have effect of automatic device node creation also suppose.


thanks,

marek
,
-- 
as simple and primitive as possible
-------------------------------------------------
Marek Belisko - OPEN-NANDRA
Freelance Developer

Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
Tel: +421 915 052 184
skype: marekwhite
icq: 290551086
web: http://open-nandra.com
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] Add misc device handling., Marek Belisko, (Tue Nov 23, 5:29 am)
[PATCH 3/6] staging: ft1000: Remove unused variables., Marek Belisko, (Tue Nov 23, 5:29 am)
[PATCH 4/6] staging: ft1000: Remove unused headers., Marek Belisko, (Tue Nov 23, 5:29 am)
[PATCH 5/6] staging: ft1000: Remove dead code, Marek Belisko, (Tue Nov 23, 5:29 am)
Re: [PATCH 2/6] staging: ft1000: Use misc device instead s ..., Belisko Marek, (Wed Nov 24, 2:16 am)
Re: [PATCH 0/6] Add misc device handling., Greg KH, (Mon Nov 29, 12:44 pm)