Re: [PATCH 00/21] gspca pac7302/pac7311: separate the two drivers

2009-11-01 Thread Németh Márton
Jean-Francois Moine wrote: > On Sun, 01 Nov 2009 00:13:10 +0100 > Németh Márton wrote: > >> the following patchset refactores the Pixart PAC7311 subdriver. The >> current situation is that the code contains a lot of decisions >> like this: >> >> if (sd->sensor == SENSOR_PAC7302) { >>

Re: [PATCH 00/21] gspca pac7302/pac7311: separate the two drivers

2009-11-01 Thread Jean-Francois Moine
On Sun, 01 Nov 2009 00:13:10 +0100 Németh Márton wrote: > the following patchset refactores the Pixart PAC7311 subdriver. The > current situation is that the code contains a lot of decisions > like this: > > if (sd->sensor == SENSOR_PAC7302) { > ... do this ... > } else { >

[PATCH 00/21] gspca pac7302/pac7311: separate the two drivers

2009-10-31 Thread Németh Márton
Hi, the following patchset refactores the Pixart PAC7311 subdriver. The current situation is that the code contains a lot of decisions like this: if (sd->sensor == SENSOR_PAC7302) { ... do this ... } else { ... do something else ... } The sensor type is determined usi