gspca pac7302/pac7311: separate the two drivers
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest21 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/21 | gspca pac7302/pac7311: add prefix for sensor specific functionsdrivers/ | +10 | 0 replies | |
| 2/21 | gspca pac7302/pac7311: separate sd_descdrivers/ | +22 | 0 replies | |
| 3/21 | gspca pac7302/pac7311: separate pkt_scandrivers/ | +78 | 0 replies | |
| 4/21 | gspca pac7302/pac7311: separate configdrivers/ | +34 | 0 replies | |
| 5/21 | gspca pac7302/pac7311: separate initdrivers/ | +12 | 0 replies | |
| 6/21 | gspca pac7302/pac7311: separate startdrivers/ | +33 | 0 replies | |
| 7/21 | gspca pac7302/pac7311: separate stopNdrivers/ | +9 | 0 replies | |
| 8/21 | gspca pac7302/pac7311: separate stop0drivers/ | +11 | 0 replies | |
| 9/21 | gspca pac7302/pac7311: separate dq_callbackdrivers/ | +33 | 0 replies | |
| 10/21 | gspca pac7302/pac7311: separate brightness and color controlsdrivers/ | +111 | 0 replies | |
| 11/21 | gspca pac7302/pac7311: separate contrast controldrivers/ | +30 | 0 replies | |
| 12/21 | gspca pac7302/pac7311: separate hvflipdrivers/ | +75 | 0 replies | |
| 13/21 | gspca pac7302/pac7311: separate gain/autogain controldrivers/ | +94 | 0 replies | |
| 14/21 | gspca pac7302/pac7311: separate exposuredrivers/ | +70 | 0 replies | |
| 15/21 | gspca pac7302/pac7311: simplify pac_find_sofdrivers/ drivers/ drivers/ +1 more | +18 | 0 replies | |
| 16/21 | gspca pac7302/pac7311: separate private sddrivers/ | +69 | 0 replies | |
| 17/21 | gspca pac7302/pac7311: separate format descriptorsdrivers/ | +13 | 0 replies | |
| 18/21 | gspca pac7302/pac7311: generalize reg_w_vardrivers/ | +11 | 0 replies | |
| 19/21 | gspca pac7302/pac7311: extract pac_start_framedrivers/ | +26 | 0 replies | |
| 20/21 | gspca pac7302/pac7311: separate the two subdriversdrivers/ drivers/ drivers/ +1 more | +991 | 1 reply | |
| 21/21 | gspca pac7302/pac7311: remove prefixesdrivers/ drivers/ | +226 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/21] gspca pac7302/pac7311: separate the two drivers
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 using the USB Vendor ID and Product ID which means that the decisions shown are not really necessary.
The goal of the patchset is to have a PAC7302 and a PAC7311 subdriver which have the benefit that there is no decision necessary on sensor type at runtime. The common functions can be extracted later but this would be a different patchset.
Regards,
Márton Németh