From: jonghwa3.lee@samsung.com
To: Sangjung Woo <sangjung.woo@samsung.com>
Cc: Andrew Morton <akpm@linux-foundation.org>,
Jonghwa Lee <jonghwa3.lee@samsung.com>,
linux-kernel@vger.kernel.org,
Myugnjoo Ham <myungjoo.ham@samsung.com>
Subject: Re: [PATCH] drivers/rtc/rtc-max77686.c: Fix wrong register
Date: Tue, 13 Aug 2013 23:33:56 +0900 [thread overview]
Message-ID: <520A43D4.5090606@samsung.com> (raw)
In-Reply-To: <1376401032-31244-1-git-send-email-sangjung.woo@samsung.com>
On 2013년 08월 13일 22:37, Sangjung Woo wrote:
> Fix to read the wrong register when cheching whether the RTC timer has
> reached or not.
>
> Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
> Signed-off-by: Myugnjoo Ham <myungjoo.ham@samsung.com>
> Reviewed-by: Jonghwa Lee <jonghwa3.lee@samsung.com>
> ---
> drivers/rtc/rtc-max77686.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c
> index 9915cb9..a1140c8 100644
> --- a/drivers/rtc/rtc-max77686.c
> +++ b/drivers/rtc/rtc-max77686.c
> @@ -240,7 +240,7 @@ static int max77686_rtc_read_alarm(struct device *dev, struct rtc_wkalrm *alrm)
> }
>
> alrm->pending = 0;
> - ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS1, &val);
> + ret = regmap_read(info->max77686->regmap, MAX77686_REG_STATUS2, &val);
> if (ret < 0) {
> dev_err(info->dev, "%s:%d fail to read status1 reg(%d)\n",
Would you change the error message either?
> __func__, __LINE__, ret);
Thanks,
Jonghwa.
next prev parent reply other threads:[~2013-08-13 14:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-13 13:37 [PATCH] drivers/rtc/rtc-max77686.c: Fix wrong register Sangjung Woo
2013-08-13 14:33 ` jonghwa3.lee [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-08-14 1:21 Sangjung Woo
2013-08-14 20:21 ` Andrew Morton
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=520A43D4.5090606@samsung.com \
--to=jonghwa3.lee@samsung.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=myungjoo.ham@samsung.com \
--cc=sangjung.woo@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox