public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mattias Wallin <mattias.wallin@stericsson.com>
To: Samuel Ortiz <sameo@linux.intel.com>
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	Linus WALLEIJ <linus.walleij@stericsson.com>,
	Ludovic BARRE <ludovic.barre@stericsson.com>
Subject: Re: [PATCH] MFD: ab8500 chip id exported to sysfs
Date: Tue, 30 Nov 2010 10:44:07 +0100	[thread overview]
Message-ID: <4CF4C767.70107@stericsson.com> (raw)
In-Reply-To: <20101126154303.GC27663@sortiz-mobl>

Hi,

On 11/26/2010 04:43 PM, Samuel Ortiz wrote:
> Hi Mattias,
> 
> On Fri, Nov 26, 2010 at 01:05:25PM +0100, Mattias Wallin wrote:
>> This patch adds a file into sysfs for reading out chip id.
>> It have been requested for modem silent reboot.
>>
>> Change-Id: I8e2c10e740a90ab210e023df4214b422c01f2efb
> I suppose this is some internal ID ? Please remove it from the Changelog.
Sorry.
> 
> 
>> Signed-off-by: Mattias Wallin <mattias.wallin@stericsson.com>
>> Signed-off-by: Ludovic Barre <ludovic.barre@stericsson.com>
>> ---
>>  drivers/mfd/ab8500-core.c |   27 ++++++++++++++++++++++++++-
>>  1 files changed, 26 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/mfd/ab8500-core.c b/drivers/mfd/ab8500-core.c
>> index e64569e..c59e832 100644
>> --- a/drivers/mfd/ab8500-core.c
>> +++ b/drivers/mfd/ab8500-core.c
>> @@ -98,7 +98,7 @@ static int ab8500_get_chip_id(struct device *dev)
>>  	if (!dev)
>>  		return -EINVAL;
>>  	ab8500 = dev_get_drvdata(dev->parent);
>> -	return (int)ab8500->chip_id;
>> +	return ab8500 ? (int)ab8500->chip_id : -EINVAL;
> Here again, you're squeezing some potential bug fix into this patch.
Ok, I'll put this in a seperate patch.
> 
> The rest looks just fine.
> 
> Cheers,
> Samuel.
> 

      reply	other threads:[~2010-11-30  9:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-26 12:05 [PATCH] MFD: ab8500 chip id exported to sysfs Mattias Wallin
2010-11-26 15:43 ` Samuel Ortiz
2010-11-30  9:44   ` Mattias Wallin [this message]

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=4CF4C767.70107@stericsson.com \
    --to=mattias.wallin@stericsson.com \
    --cc=linus.walleij@stericsson.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ludovic.barre@stericsson.com \
    --cc=sameo@linux.intel.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