lkml.org 
[lkml]   [2002]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: driverfs support for motherboard devices
On Tue, 5 Feb 2002, Pavel Machek wrote:

> +static void __init init_8259A_devicefs(void)
> +{
> + device_register(&device_i8259A);
> + strcpy(device_i8259A.name, "i8259A");
> + strcpy(device_i8259A.bus_id, "0020");
> + device_i8259A.parent = &sys_iobus;

I'm not entirely familiar with the driverfs API but wouldn't an API
function to do all that strcpy and other init assignments be a bit
cleaner? I see lots of retyping going on otherwise, someone feel free to
hit me with a clue bat if i'm missing something...

Cheers,
Zwane Mwaikambo


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.140 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site