Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1318604
| From | Krzysztof Kozlowski <k.kozlowski@samsung.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH v4 07/10] rtc: max77686: Fix unsupported year message |
| Date | 2016-01-27 05:30 +0100 |
| Message-ID | <qVpTX-6np-7@gated-at.bofh.it> (permalink) |
| References | <qVp7A-5OH-5@gated-at.bofh.it> <qVp7A-5OH-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 27.01.2016 12:36, Javier Martinez Canillas wrote: > The max77686 RTC only supports a range of 99 years so instead of using > year 1900 as the base, the year 2000 is used. This means that 1900 to > 1999 are unsupported years. > > The driver was printing a warning for those values but was returning a > error so for consistency, print an error message instead and don't say > that a year 2000 is assumed, since the year is not set. > > Also, it is better to use dev_* log functions instead of pr_* to print > information about the device in the kernel log in a standardized way. > > This also allows to remove the local pr_fmt() defined macro. > > Suggested-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> > Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> > > --- > > Changes in v4: > - Use dev_err() instead of dev_warn() and change message. > Suggested by Krzysztof Kozlowski and Andi Shyti. > - Change subject line and commit message of patch #7. > - Removed Laxman Dewangan's Acked-by tag since the patch changed. > > Changes in v3: > - Add Laxman Dewangan's Acked-by tag to patch #7. > > Changes in v2: None > > drivers/rtc/rtc-max77686.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) Reviewed-by: Krzysztof Kozlowski <k.kozlowski@samsung.com> Best regards, Krzysztof
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH v4 07/10] rtc: max77686: Fix unsupported year message Javier Martinez Canillas <javier@osg.samsung.com> - 2016-01-27 04:40 +0100 Re: [PATCH v4 07/10] rtc: max77686: Fix unsupported year message Krzysztof Kozlowski <k.kozlowski@samsung.com> - 2016-01-27 05:30 +0100
csiph-web