Message ID | 1451692425-4667-1-git-send-email-colin.king@canonical.com (mailing list archive) |
---|---|
State | Accepted, archived |
Delegated to: | Rafael Wysocki |
Headers | show |
On Friday, January 01, 2016 11:53:45 PM Colin King wrote: > From: Colin Ian King <colin.king@canonical.com> > > The indenting in acpi_battery_set_alarm is inconsistent and has been > so since 2007; commit 94f6c0860139da9219255b8ff45ad42117dda859 > ("ACPI: SBS: Add support for power_supply class (and sysfs)"). Minor > fix for this, no code functionality change. > > Signed-off-by: Colin Ian King <colin.king@canonical.com> Applied, thanks! Rafael -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/acpi/sbs.c b/drivers/acpi/sbs.c index cb3dedb..ad0b13a 100644 --- a/drivers/acpi/sbs.c +++ b/drivers/acpi/sbs.c @@ -417,11 +417,11 @@ static int acpi_battery_set_alarm(struct acpi_battery *battery) if ((value & 0xf000) != sel) { value &= 0x0fff; value |= sel; - ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, + ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_MANAGER, 0x01, (u8 *)&value, 2); - if (ret) - goto end; + if (ret) + goto end; } } ret = acpi_smbus_write(sbs->hc, SMBUS_WRITE_WORD, ACPI_SBS_BATTERY,