All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans Verkuil <hverkuil@xs4all.nl>
To: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Cc: Linux Media Mailing List <linux-media@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH 03/14] saa7134: fix indent issues
Date: Thu, 30 Apr 2015 16:39:19 +0200	[thread overview]
Message-ID: <55423E97.7000609@xs4all.nl> (raw)
In-Reply-To: <20150430110829.34b9f9f9@recife.lan>

On 04/30/2015 04:08 PM, Mauro Carvalho Chehab wrote:
> Em Thu, 30 Apr 2015 08:20:49 +0200
> Hans Verkuil <hverkuil@xs4all.nl> escreveu:
> 
>> On 04/28/2015 05:43 PM, Mauro Carvalho Chehab wrote:
>>> As reported by smatch:
>>> 	drivers/media/pci/saa7134/saa7134-cards.c:7197 saa7134_xc2028_callback() warn: inconsistent indenting
>>> 	drivers/media/pci/saa7134/saa7134-cards.c:7846 saa7134_board_init2() warn: inconsistent indenting
>>> 	drivers/media/pci/saa7134/saa7134-cards.c:7913 saa7134_board_init2() warn: inconsistent indenting
>>>
>>> While here, fix a few CodingStyle issues on the affected code
>>>
>>> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
>>>
>>> diff --git a/drivers/media/pci/saa7134/saa7134-cards.c b/drivers/media/pci/saa7134/saa7134-cards.c
>>> index 3ca078057755..d48fd5338db5 100644
>>> --- a/drivers/media/pci/saa7134/saa7134-cards.c
>>> +++ b/drivers/media/pci/saa7134/saa7134-cards.c
>>> @@ -7194,7 +7194,7 @@ static int saa7134_xc2028_callback(struct saa7134_dev *dev,
>>>  			saa7134_set_gpio(dev, 20, 1);
>>>  		break;
>>>  		}
>>> -	return 0;
>>> +		return 0;
>>>  	}
>>>  	return -EINVAL;
>>>  }
>>> @@ -7842,7 +7842,8 @@ int saa7134_board_init2(struct saa7134_dev *dev)
>>>  				break;
>>>  			case 0x001d:
>>>  				dev->tuner_type = TUNER_PHILIPS_FMD1216ME_MK3;
>>> -					printk(KERN_INFO "%s Board has DVB-T\n", dev->name);
>>> +				printk(KERN_INFO "%s Board has DVB-T\n",
>>> +				       dev->name);
>>
>> If you're changing this anyway, why not use pr_info instead?
> 
> Converting it to pr_foo is actually complex. Anyway, I found some time
> today to do such conversion. I'll be adding on a patch series I'm about
> to send.

I was just referring to this single patch, not the whole driver! :-)

Anyway, for the saa7134 patches:

Acked-by: Hans Verkuil <hans.verkuil@cisco.com>

> 
>>
>>>  				break;
>>>  			default:
>>>  				printk(KERN_ERR "%s Can't determine tuner type %x from EEPROM\n", dev->name, tuner_t);
>>> @@ -7903,13 +7904,15 @@ int saa7134_board_init2(struct saa7134_dev *dev)
>>>  	case SAA7134_BOARD_ASUSTeK_TVFM7135:
>>>  	/* The card below is detected as card=53, but is different */
>>>  	       if (dev->autodetected && (dev->eedata[0x27] == 0x03)) {
>>> -		       dev->board = SAA7134_BOARD_ASUSTeK_P7131_ANALOG;
>>> -		       printk(KERN_INFO "%s: P7131 analog only, using "
>>> -						       "entry of %s\n",
>>> -		       dev->name, saa7134_boards[dev->board].name);
>>> +			dev->board = SAA7134_BOARD_ASUSTeK_P7131_ANALOG;
>>> +			printk(KERN_INFO
>>> +			       "%s: P7131 analog only, using entry of %s\n",
>>
>> Ditto.
>>
>>> +			dev->name, saa7134_boards[dev->board].name);
>>>  
>>> -			/* IR init has already happened for other cards, so
>>> -			 * we have to catch up. */
>>> +			/*
>>> +			 * IR init has already happened for other cards, so
>>> +			 * we have to catch up.
>>> +			 */
>>>  			dev->has_remote = SAA7134_REMOTE_GPIO;
>>>  			saa7134_input_init1(dev);
>>>  	       }
>>>
>>
>> Regards,
>>
>> 	Hans
> --
> To unsubscribe from this list: send the line "unsubscribe linux-media" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 


  reply	other threads:[~2015-04-30 14:39 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-28 15:43 [PATCH 01/14] rc: fix bad indenting Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 02/14] cx18: avoid going past input/audio array Mauro Carvalho Chehab
2015-04-28 23:07   ` Andy Walls
2015-04-28 15:43 ` [PATCH 03/14] saa7134: fix indent issues Mauro Carvalho Chehab
2015-04-30  6:20   ` Hans Verkuil
2015-04-30 14:08     ` Mauro Carvalho Chehab
2015-04-30 14:39       ` Hans Verkuil [this message]
2015-04-28 15:43 ` [PATCH 04/14] ngene: preventing dereferencing a NULL pointer Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 05/14] saa7164: Check if dev is NULL before dereferencing it Mauro Carvalho Chehab
2015-04-30  6:21   ` Hans Verkuil
2015-04-28 15:43 ` [PATCH 06/14] saa717x: fix multi-byte read code Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 07/14] radio-si476x: Fix indent Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 08/14] avoid going past input/audio array Mauro Carvalho Chehab
2015-04-28 23:08   ` Andy Walls
2015-04-28 15:43 ` [PATCH 09/14] zoran: fix indent Mauro Carvalho Chehab
2015-04-30  6:22   ` Hans Verkuil
2015-04-30 10:16   ` Lad, Prabhakar
2015-04-28 15:43 ` [PATCH 10/14] s3c-camif: Check if fmt is NULL before use Mauro Carvalho Chehab
2015-04-29  9:03   ` Sylwester Nawrocki
2015-04-28 15:43 ` [PATCH 11/14] s5p_mfc: remove a dead code Mauro Carvalho Chehab
2015-04-28 15:43   ` Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 12/14] ir-sony-decoder: shutup smatch warnings Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 13/14] wl128x: fix int type for streg_cbdata Mauro Carvalho Chehab
2015-04-28 15:43 ` [PATCH 14/14] qt1010: Reduce text size by using static const Mauro Carvalho Chehab

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=55423E97.7000609@xs4all.nl \
    --to=hverkuil@xs4all.nl \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=mchehab@osg.samsung.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.