Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4057a66e authored by Alexandre Belloni's avatar Alexandre Belloni
Browse files

rtc: ds1307: fix alignments and blank lines



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

Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent eb4fd190
Loading
Loading
Loading
Loading
+10 −11
Original line number Diff line number Diff line
@@ -51,7 +51,6 @@ enum ds_type {
	/* rs5c372 too?  different address... */
};


/* RTC registers don't differ much, except for the century flag */
#define DS1307_REG_SECS		0x00	/* 00-59 */
#	define DS1307_BIT_CH		0x80
@@ -114,7 +113,6 @@ enum ds_type {
#	define RX8025_BIT_VDET		0x40
#	define RX8025_BIT_XST		0x20


struct ds1307 {
	struct nvmem_config	nvmem_cfg;
	enum ds_type		type;
@@ -1070,7 +1068,8 @@ static void ds1307_hwmon_register(struct ds1307 *ds1307)
		return;

	dev = devm_hwmon_device_register_with_groups(ds1307->dev, ds1307->name,
						ds1307, ds3231_hwmon_groups);
						     ds1307,
						     ds3231_hwmon_groups);
	if (IS_ERR(dev)) {
		dev_warn(ds1307->dev, "unable to register hwmon device %ld\n",
			 PTR_ERR(dev));