From: Johann D. <joh...@la...> - 2002-07-07 18:01:34
|
Brad Hards wrote: > On Sun, 7 Jul 2002 19:10, Johann Deneux wrote: > >>>>Those symbols were both used as "enums" for bus types and as >>>>configuration options. Now IFORCE_{232,USB} is used for the bus type >>>>only, and CONFIG_JOYSTICK_IFORCE_{232,USB}. >>>> >>>This sentence looks incomplete - I'm not following it. >>> >>It is indeed incomplete. The missing part is "for >>configuration-dependent code". >> > So you used a construct like: > > case IFORCE_USB: > > #ifdef CONFIG_JOYSTICK_IFORCE_USB > iforce->cr.bRequest = packet[0]; > <random snippage> > #else > printk(KERN_ERR "iforce_get_id_packet: iforce->bus = USB!\n"); > #endif > break; > > > Yep -- Johann |