Commit c0cbfb03 authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Greg Kroah-Hartman

soundwire: slave: fix alignment issues

Use Linux style
Reviewed-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1fe74a5e
...@@ -14,7 +14,7 @@ static void sdw_slave_release(struct device *dev) ...@@ -14,7 +14,7 @@ static void sdw_slave_release(struct device *dev)
} }
static int sdw_slave_add(struct sdw_bus *bus, static int sdw_slave_add(struct sdw_bus *bus,
struct sdw_slave_id *id, struct fwnode_handle *fwnode) struct sdw_slave_id *id, struct fwnode_handle *fwnode)
{ {
struct sdw_slave *slave; struct sdw_slave *slave;
int ret; int ret;
...@@ -30,8 +30,8 @@ static int sdw_slave_add(struct sdw_bus *bus, ...@@ -30,8 +30,8 @@ static int sdw_slave_add(struct sdw_bus *bus,
/* name shall be sdw:link:mfg:part:class:unique */ /* name shall be sdw:link:mfg:part:class:unique */
dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x", dev_set_name(&slave->dev, "sdw:%x:%x:%x:%x:%x",
bus->link_id, id->mfg_id, id->part_id, bus->link_id, id->mfg_id, id->part_id,
id->class_id, id->unique_id); id->class_id, id->unique_id);
slave->dev.release = sdw_slave_release; slave->dev.release = sdw_slave_release;
slave->dev.bus = &sdw_bus_type; slave->dev.bus = &sdw_bus_type;
...@@ -84,11 +84,11 @@ int sdw_acpi_find_slaves(struct sdw_bus *bus) ...@@ -84,11 +84,11 @@ int sdw_acpi_find_slaves(struct sdw_bus *bus)
acpi_status status; acpi_status status;
status = acpi_evaluate_integer(adev->handle, status = acpi_evaluate_integer(adev->handle,
METHOD_NAME__ADR, NULL, &addr); METHOD_NAME__ADR, NULL, &addr);
if (ACPI_FAILURE(status)) { if (ACPI_FAILURE(status)) {
dev_err(bus->dev, "_ADR resolution failed: %x\n", dev_err(bus->dev, "_ADR resolution failed: %x\n",
status); status);
return status; return status;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment