rtc: ds1307: fix alignments and blank lines

Alignment should always match open parenthesis.
Also remove two unnecessary blank lines

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

+10 -11
+10 -11
drivers/rtc/rtc-ds1307.c
··· 51 /* rs5c372 too? different address... */ 52 }; 53 54 - 55 /* RTC registers don't differ much, except for the century flag */ 56 #define DS1307_REG_SECS 0x00 /* 00-59 */ 57 # define DS1307_BIT_CH 0x80 ··· 112 # define RX8025_BIT_PON 0x10 113 # define RX8025_BIT_VDET 0x40 114 # define RX8025_BIT_XST 0x20 115 - 116 117 struct ds1307 { 118 struct nvmem_config nvmem_cfg; ··· 1040 } 1041 1042 static ssize_t ds3231_hwmon_show_temp(struct device *dev, 1043 - struct device_attribute *attr, char *buf) 1044 { 1045 int ret; 1046 s32 temp; ··· 1052 return sprintf(buf, "%d\n", temp); 1053 } 1054 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, ds3231_hwmon_show_temp, 1055 - NULL, 0); 1056 1057 static struct attribute *ds3231_hwmon_attrs[] = { 1058 &sensor_dev_attr_temp1_input.dev_attr.attr, ··· 1068 return; 1069 1070 dev = devm_hwmon_device_register_with_groups(ds1307->dev, ds1307->name, 1071 - ds1307, ds3231_hwmon_groups); 1072 if (IS_ERR(dev)) { 1073 dev_warn(ds1307->dev, "unable to register hwmon device %ld\n", 1074 PTR_ERR(dev)); ··· 1141 } 1142 1143 static long ds3231_clk_sqw_round_rate(struct clk_hw *hw, unsigned long rate, 1144 - unsigned long *prate) 1145 { 1146 int i; 1147 ··· 1154 } 1155 1156 static int ds3231_clk_sqw_set_rate(struct clk_hw *hw, unsigned long rate, 1157 - unsigned long parent_rate) 1158 { 1159 struct ds1307 *ds1307 = clk_sqw_to_ds1307(hw); 1160 int control = 0; ··· 1214 }; 1215 1216 static unsigned long ds3231_clk_32khz_recalc_rate(struct clk_hw *hw, 1217 - unsigned long parent_rate) 1218 { 1219 return 32768; 1220 } ··· 1305 1306 /* optional override of the clockname */ 1307 of_property_read_string_index(node, "clock-output-names", i, 1308 - &init.name); 1309 ds1307->clks[i].init = &init; 1310 1311 onecell->clks[i] = devm_clk_register(ds1307->dev, ··· 1569 /* oscillator fault? clear flag, and warn */ 1570 if (regs[DS1307_REG_CONTROL] & DS1338_BIT_OSF) { 1571 regmap_write(ds1307->regmap, DS1307_REG_CONTROL, 1572 - regs[DS1307_REG_CONTROL] & 1573 - ~DS1338_BIT_OSF); 1574 dev_warn(ds1307->dev, "SET TIME!\n"); 1575 goto read_rtc; 1576 }
··· 51 /* rs5c372 too? different address... */ 52 }; 53 54 /* RTC registers don't differ much, except for the century flag */ 55 #define DS1307_REG_SECS 0x00 /* 00-59 */ 56 # define DS1307_BIT_CH 0x80 ··· 113 # define RX8025_BIT_PON 0x10 114 # define RX8025_BIT_VDET 0x40 115 # define RX8025_BIT_XST 0x20 116 117 struct ds1307 { 118 struct nvmem_config nvmem_cfg; ··· 1042 } 1043 1044 static ssize_t ds3231_hwmon_show_temp(struct device *dev, 1045 + struct device_attribute *attr, char *buf) 1046 { 1047 int ret; 1048 s32 temp; ··· 1054 return sprintf(buf, "%d\n", temp); 1055 } 1056 static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, ds3231_hwmon_show_temp, 1057 + NULL, 0); 1058 1059 static struct attribute *ds3231_hwmon_attrs[] = { 1060 &sensor_dev_attr_temp1_input.dev_attr.attr, ··· 1070 return; 1071 1072 dev = devm_hwmon_device_register_with_groups(ds1307->dev, ds1307->name, 1073 + ds1307, 1074 + ds3231_hwmon_groups); 1075 if (IS_ERR(dev)) { 1076 dev_warn(ds1307->dev, "unable to register hwmon device %ld\n", 1077 PTR_ERR(dev)); ··· 1142 } 1143 1144 static long ds3231_clk_sqw_round_rate(struct clk_hw *hw, unsigned long rate, 1145 + unsigned long *prate) 1146 { 1147 int i; 1148 ··· 1155 } 1156 1157 static int ds3231_clk_sqw_set_rate(struct clk_hw *hw, unsigned long rate, 1158 + unsigned long parent_rate) 1159 { 1160 struct ds1307 *ds1307 = clk_sqw_to_ds1307(hw); 1161 int control = 0; ··· 1215 }; 1216 1217 static unsigned long ds3231_clk_32khz_recalc_rate(struct clk_hw *hw, 1218 + unsigned long parent_rate) 1219 { 1220 return 32768; 1221 } ··· 1306 1307 /* optional override of the clockname */ 1308 of_property_read_string_index(node, "clock-output-names", i, 1309 + &init.name); 1310 ds1307->clks[i].init = &init; 1311 1312 onecell->clks[i] = devm_clk_register(ds1307->dev, ··· 1570 /* oscillator fault? clear flag, and warn */ 1571 if (regs[DS1307_REG_CONTROL] & DS1338_BIT_OSF) { 1572 regmap_write(ds1307->regmap, DS1307_REG_CONTROL, 1573 + regs[DS1307_REG_CONTROL] & 1574 + ~DS1338_BIT_OSF); 1575 dev_warn(ds1307->dev, "SET TIME!\n"); 1576 goto read_rtc; 1577 }