public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: Mauro Carvalho Chehab <mchehab@redhat.com>
To: Sylwester Nawrocki <snjw23@gmail.com>
Cc: linux-media@vger.kernel.org,
	Piotr Chmura <chmooreck@poczta.onet.pl>,
	Devin Heitmueller <dheitmueller@kernellabs.com>
Subject: Re: [PATCH 00/13] Remaining coding style clean up of AS102 driver
Date: Tue, 08 Nov 2011 11:36:12 -0200	[thread overview]
Message-ID: <4EB9304C.5020305@redhat.com> (raw)
In-Reply-To: <1320611510-3326-1-git-send-email-snjw23@gmail.com>

Em 06-11-2011 18:31, Sylwester Nawrocki escreveu:
> 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. 

I got a few warnings here, after applying the patch series:

drivers/staging/media/as102/as102_drv.c: In function ‘as102_dvb_register’:
drivers/staging/media/as102/as102_drv.c:223:3: warning: passing argument 1 of ‘dev_err’ from incompatible pointer type [enabled by default]
include/linux/device.h:812:12: note: expected ‘const struct device *’ but argument is of type ‘char *’
drivers/staging/media/as102/as102_drv.c:223:3: warning: too many arguments for format [-Wformat-extra-args]

please check.

> 
> 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(-)
> 


  parent reply	other threads:[~2011-11-08 13:36 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-06 20:31 [PATCH 00/13] Remaining coding style clean up of AS102 driver Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 01/13] staging: as102: Remove comment tags for editors configuration Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 02/13] staging: as102: Remove unnecessary typedefs Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 03/13] staging: as102: Remove leftovers of the SPI bus driver Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 04/13] staging: as102: Make the driver select CONFIG_FW_LOADER Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 05/13] staging: as102: Replace pragma(pack) with attribute __packed Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 06/13] staging: as102: Fix the dvb device registration error path Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 07/13] staging: as102: Whitespace and indentation cleanup Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 08/13] staging: as102: Replace printk(KERN_<LEVEL> witk pr_<level> Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 09/13] staging: as102: Remove linkage specifiers for C++ Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 10/13] staging: as102: Use linux/uaccess.h instead of asm/uaccess.h Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 11/13] staging: as102: Move variable declarations to the header Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 12/13] staging: as102: Define device name string pointers constant Sylwester Nawrocki
2011-11-06 20:31 ` [PATCH 13/13] staging: as102: Eliminate as10x_handle_t alias Sylwester Nawrocki
     [not found] ` <4EB7F709.2050503@gmail.com>
2011-11-07 19:55   ` [PATCH 00/13] Remaining coding style clean up of AS102 driver Sylwester Nawrocki
     [not found]   ` <4EB802A0.7030600@gmail.com>
2011-11-07 19:57     ` Sylwester Nawrocki
2011-11-07 20:06       ` Devin Heitmueller
2011-11-08 13:36 ` Mauro Carvalho Chehab [this message]
2011-11-08 22:40   ` Sylwester Nawrocki
2011-11-08 23:16   ` [PATCH] staging: as102: Add missing function argument Sylwester Nawrocki
2011-11-17 16:35     ` [PATCH] staging: as102: Add support for Sky Italia Digital Key based on the same chip Gianluca Gennari

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB9304C.5020305@redhat.com \
    --to=mchehab@redhat.com \
    --cc=chmooreck@poczta.onet.pl \
    --cc=dheitmueller@kernellabs.com \
    --cc=linux-media@vger.kernel.org \
    --cc=snjw23@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox