@@ -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: