Skip to content

Remaining coding style clean up of AS102 driver

Sylwester Nawrocki linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13staging: as102: Remove comment tags for editors configurationdrivers/staging/media/as102/as102_drv.c drivers/staging/media/as102/as102_drv.h drivers/staging/media/as102/as102_fe.c +5 more+0 -140 replies
2/13staging: as102: Remove unnecessary typedefsdrivers/staging/media/as102/as10x_cmd.h+63 -640 replies
3/13staging: as102: Remove leftovers of the SPI bus driverdrivers/staging/media/as102/Makefile drivers/staging/media/as102/as102_drv.c drivers/staging/media/as102/as102_drv.h +1 more+11 -770 replies
4/13staging: as102: Make the driver select CONFIG_FW_LOADERdrivers/staging/media/as102/Kconfig drivers/staging/media/as102/as102_drv.c drivers/staging/media/as102/as102_fw.c+2 -70 replies
5/13staging: as102: Replace pragma(pack) with attribute __packeddrivers/staging/media/as102/as102_fw.h drivers/staging/media/as102/as10x_cmd.h drivers/staging/media/as102/as10x_types.h+30 -380 replies
6/13staging: as102: Fix the dvb device registration error pathdrivers/staging/media/as102/as102_drv.c+25 -230 replies
7/13staging: as102: Whitespace and indentation cleanupdrivers/staging/media/as102/as102_drv.c drivers/staging/media/as102/as102_drv.h drivers/staging/media/as102/as102_usb_drv.c +4 more+493 -4950 replies
8/13staging: as102: Replace printk(KERN_<LEVEL> witk pr_<level>drivers/staging/media/as102/as102_fw.c drivers/staging/media/as102/as102_usb_drv.c+18 -180 replies
9/13staging: as102: Remove linkage specifiers for C++drivers/staging/media/as102/as10x_cmd.h+0 -70 replies
10/13staging: as102: Use linux/uaccess.h instead of asm/uaccess.hdrivers/staging/media/as102/as102_drv.c+1 -10 replies
11/13staging: as102: Move variable declarations to the headerdrivers/staging/media/as102/as102_drv.h drivers/staging/media/as102/as102_fe.c+1 -20 replies
12/13staging: as102: Define device name string pointers constantdrivers/staging/media/as102/as102_usb_drv.c+1 -10 replies
13/13staging: as102: Eliminate as10x_handle_t aliasdrivers/staging/media/as102/as102_drv.c drivers/staging/media/as102/as102_drv.h drivers/staging/media/as102/as102_fw.c +7 more+163 -1660 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Remaining coding style clean up of AS102 driver

Hello,

the following patch set is a further cleanup of the AS102 DVB-T receiver driver. I'm not sure if there are more issues to address before moving the driver to drivers/media/dvb/, but checkpatch.pl seems now to be fairly happy about the driver's state:

8<------

$ scripts/checkpatch.pl -f drivers/staging/media/as102/*.[ch]
WARNING: line over 80 characters
#137: FILE: staging/media/as102/as102_drv.c:137:
+		dprintk(debug, "ADD_PID_FILTER([%02d -> %02d], 0x%04x) ret = %d\n",

total: 0 errors, 1 warnings, 319 lines checked

drivers/staging/media/as102/as102_drv.c has style problems, please review.

If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 106 lines checked

drivers/staging/media/as102/as102_drv.h has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 599 lines checked

drivers/staging/media/as102/as102_fe.c has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 241 lines checked

drivers/staging/media/as102/as102_fw.c has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 38 lines checked

drivers/staging/media/as102/as102_fw.h has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 476 lines checked

drivers/staging/media/as102/as102_usb_drv.c has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 58 lines checked

drivers/staging/media/as102/as102_usb_drv.h has no obvious style problems and is ready for submission.
WARNING: line over 80 characters
#349: FILE: staging/media/as102/as10x_cmd.c:349:
+ le32_to_cpu(prsp->body.get_demod_stats.rsp.stats.bad_frame_count);

WARNING: line over 80 characters
#351: FILE: staging/media/as102/as10x_cmd.c:351:
+ le32_to_cpu(prsp->body.get_demod_stats.rsp.stats.bytes_fixed_by_rs);

total: 0 errors, 2 warnings, 453 lines checked

drivers/staging/media/as102/as10x_cmd.c has style problems, please review.

If any of these errors are false positives, please report them to the maintainer, see CHECKPATCH in MAINTAINERS.
total: 0 errors, 0 warnings, 215 lines checked

drivers/staging/media/as102/as10x_cmd_cfg.c has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 529 lines checked

drivers/staging/media/as102/as10x_cmd.h has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 223 lines checked

drivers/staging/media/as102/as10x_cmd_stream.c has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 54 lines checked

drivers/staging/media/as102/as10x_handle.h has no obvious style problems and is ready for submission.
total: 0 errors, 0 warnings, 194 lines checked

drivers/staging/media/as102/as10x_types.h has no obvious style problems and is ready for submission. ---->8

Thanks to Piotr Chmura for initially reviewing the series.

The patches can be pulled from:
git://gitorious.org/linux-media/media_tree.git staging_media_as102_cleanup

The driver has been tested with PCTV picoStick (74e) DVB-T tuner.

The only issue I observed is at first run MeTV displays "Failed to lock channel" error instead of playing the last selected channel immediately.

I'm rather not planning to be doing much more work on this driver.

--
Thanks,
Sylwester

Piotr Chmura (1):
staging: as102: Remove comment tags for editors configuration

Sylwester Nawrocki (12):
staging: as102: Remove unnecessary typedefs
staging: as102: Remove leftovers of the SPI bus driver
staging: as102: Make the driver select CONFIG_FW_LOADER
staging: as102: Replace pragma(pack) with attribute __packed
staging: as102: Fix the dvb device registration error path
staging: as102: Whitespace and indentation cleanup
staging: as102: Replace printk(KERN_<LEVEL> witk pr_<level>
staging: as102: Remove linkage specifiers for C++
staging: as102: Use linux/uaccess.h instead of asm/uaccess.h
staging: as102: Move variable declarations to the header
staging: as102: Define device name string pointers constant
staging: as102: Eliminate as10x_handle_t alias

 drivers/staging/media/as102/Kconfig            |    1 +
 drivers/staging/media/as102/Makefile           |    2 +-
 drivers/staging/media/as102/as102_drv.c        |  126 ++---
 drivers/staging/media/as102/as102_drv.h        |   59 +--
 drivers/staging/media/as102/as102_fe.c         |    4 -
 drivers/staging/media/as102/as102_fw.c         |   44 +-
 drivers/staging/media/as102/as102_fw.h         |   10 +-
 drivers/staging/media/as102/as102_usb_drv.c    |   34 +-
 drivers/staging/media/as102/as102_usb_drv.h    |    1 -
 drivers/staging/media/as102/as10x_cmd.c        |  139 ++--
 drivers/staging/media/as102/as10x_cmd.h        |  895 ++++++++++++------------
 drivers/staging/media/as102/as10x_cmd_cfg.c    |   66 +-
 drivers/staging/media/as102/as10x_cmd_stream.c |   56 +-
 drivers/staging/media/as102/as10x_handle.h     |   26 +-
 drivers/staging/media/as102/as10x_types.h      |  250 ++++----
 15 files changed, 804 insertions(+), 909 deletions(-)
Signature · 1 line
1.7.5.4