mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-01 11:54:10 +00:00
drivers/rtc/rtc-cmos.c: fix whitespace related errors
Fixes the following types of issues: ERROR: space required after that ',' (ctx:VxV) WARNING: please, no spaces at the start of a line Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Cc: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8ecc0bf41a
commit
5e8599d21b
1 changed files with 3 additions and 3 deletions
|
@ -326,7 +326,7 @@ static void cmos_irq_disable(struct cmos_rtc *cmos, unsigned char mask)
|
||||||
static int cmos_set_alarm(struct device *dev, struct rtc_wkalrm *t)
|
static int cmos_set_alarm(struct device *dev, struct rtc_wkalrm *t)
|
||||||
{
|
{
|
||||||
struct cmos_rtc *cmos = dev_get_drvdata(dev);
|
struct cmos_rtc *cmos = dev_get_drvdata(dev);
|
||||||
unsigned char mon, mday, hrs, min, sec, rtc_control;
|
unsigned char mon, mday, hrs, min, sec, rtc_control;
|
||||||
|
|
||||||
if (!is_valid_irq(cmos->irq))
|
if (!is_valid_irq(cmos->irq))
|
||||||
return -EIO;
|
return -EIO;
|
||||||
|
@ -691,7 +691,7 @@ cmos_do_probe(struct device *dev, struct resource *ports, int rtc_irq)
|
||||||
/* FIXME:
|
/* FIXME:
|
||||||
* <asm-generic/rtc.h> doesn't know 12-hour mode either.
|
* <asm-generic/rtc.h> doesn't know 12-hour mode either.
|
||||||
*/
|
*/
|
||||||
if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) {
|
if (is_valid_irq(rtc_irq) && !(rtc_control & RTC_24H)) {
|
||||||
dev_warn(dev, "only 24-hr supported\n");
|
dev_warn(dev, "only 24-hr supported\n");
|
||||||
retval = -ENXIO;
|
retval = -ENXIO;
|
||||||
goto cleanup1;
|
goto cleanup1;
|
||||||
|
@ -991,7 +991,7 @@ static int cmos_pnp_probe(struct pnp_dev *pnp, const struct pnp_device_id *id)
|
||||||
{
|
{
|
||||||
cmos_wake_setup(&pnp->dev);
|
cmos_wake_setup(&pnp->dev);
|
||||||
|
|
||||||
if (pnp_port_start(pnp,0) == 0x70 && !pnp_irq_valid(pnp,0))
|
if (pnp_port_start(pnp, 0) == 0x70 && !pnp_irq_valid(pnp, 0))
|
||||||
/* Some machines contain a PNP entry for the RTC, but
|
/* Some machines contain a PNP entry for the RTC, but
|
||||||
* don't define the IRQ. It should always be safe to
|
* don't define the IRQ. It should always be safe to
|
||||||
* hardcode it in these cases
|
* hardcode it in these cases
|
||||||
|
|
Loading…
Add table
Reference in a new issue