From: Brad H. <bh...@bi...> - 2002-07-07 11:35:21
|
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; -- http://conf.linux.org.au. 22-25Jan2003. Perth, Australia. Birds in Black. |