Patchwork rtc: add NXP PCF2127 support (i2c)

login
register
mail settings
Submitter Andrew Morton
Date July 2, 2013, 11:01 p.m.
Message ID <20130702160150.8780d314e2f74e4cb477760d@linux-foundation.org>
Download mbox | patch
Permalink /patch/256522/
State New
Headers show

Comments

Andrew Morton - July 2, 2013, 11:01 p.m.
On Thu, 20 Jun 2013 14:36:28 +0200 Renaud Cerrato <r.cerrato@til-technologies.fr> wrote:

> Added support for NXP PCF2127 RTC (i2c).

Little fixes:

From: Andrew Morton <akpm@linux-foundation.org>
Subject: rtc-add-nxp-pcf2127-support-i2c-fix

fix typo, fix warnings

Cc: Jingoo Han <jg1.han@samsung.com>
Cc: Renaud Cerrato <r.cerrato@til-technologies.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/rtc/rtc-pcf2127.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff -puN drivers/rtc/Kconfig~rtc-add-nxp-pcf2127-support-i2c-fix drivers/rtc/Kconfig
diff -puN drivers/rtc/Makefile~rtc-add-nxp-pcf2127-support-i2c-fix drivers/rtc/Makefile
diff -puN drivers/rtc/rtc-pcf2127.c~rtc-add-nxp-pcf2127-support-i2c-fix drivers/rtc/rtc-pcf2127.c
--- a/drivers/rtc/rtc-pcf2127.c~rtc-add-nxp-pcf2127-support-i2c-fix
+++ a/drivers/rtc/rtc-pcf2127.c
@@ -37,7 +37,7 @@  static struct i2c_driver pcf2127_driver;
 
 struct pcf2127 {
 	struct rtc_device *rtc;
-	int voltage_low; /* incicates if a low_voltage was detected */
+	int voltage_low; /* indicates if a low_voltage was detected */
 };
 
 /*
@@ -99,7 +99,6 @@  static int pcf2127_get_datetime(struct i
 
 static int pcf2127_set_datetime(struct i2c_client *client, struct rtc_time *tm)
 {
-	struct pcf2127 *pcf2127 = i2c_get_clientdata(client);
 	unsigned char buf[8];
 	int i = 0, err;
 
@@ -141,7 +140,6 @@  static int pcf2127_rtc_ioctl(struct devi
 				unsigned int cmd, unsigned long arg)
 {
 	struct pcf2127 *pcf2127 = i2c_get_clientdata(to_i2c_client(dev));
-	struct rtc_time tm;
 
 	switch (cmd) {
 	case RTC_VL_READ: