summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801gx/smbus.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2020-04-04 13:43:03 +0200
committerNico Huber <nico.h@gmx.de>2020-04-05 13:33:31 +0000
commit92646ea3e3456a0a975775a1f5aa5dc011a9b1b6 (patch)
tree41fa48a2be2c72cc862431933fab741bf4dc9474 /src/southbridge/intel/i82801gx/smbus.c
parentdeeccbf4e96de1cd4ed136f865b96a90db374886 (diff)
downloadcoreboot-92646ea3e3456a0a975775a1f5aa5dc011a9b1b6.tar.xz
sb/intel/i82801gx: Improve code formatting
This mainly updates the formatting for the new 96 characters text width. Change-Id: Ia75c3ca7136b0291b3ae82e6a281cc76b75965ca Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40127 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/southbridge/intel/i82801gx/smbus.c')
-rw-r--r--src/southbridge/intel/i82801gx/smbus.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/southbridge/intel/i82801gx/smbus.c b/src/southbridge/intel/i82801gx/smbus.c
index d533b8776a..b6c669af55 100644
--- a/src/southbridge/intel/i82801gx/smbus.c
+++ b/src/southbridge/intel/i82801gx/smbus.c
@@ -34,8 +34,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 data)
return do_smbus_write_byte(res->base, device, address, data);
}
-static int lsmbus_block_write(struct device *dev, u8 cmd, u8 bytes,
- const u8 *buf)
+static int lsmbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buf)
{
u16 device;
struct resource *res;
@@ -62,9 +61,9 @@ static int lsmbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buf)
static struct smbus_bus_operations lops_smbus_bus = {
.read_byte = lsmbus_read_byte,
- .write_byte = lsmbus_write_byte,
- .block_read = lsmbus_block_read,
- .block_write = lsmbus_block_write,
+ .write_byte = lsmbus_write_byte,
+ .block_read = lsmbus_block_read,
+ .block_write = lsmbus_block_write,
};
static struct pci_operations smbus_pci_ops = {