Commit 5f49ef8e authored by Jean Delvare's avatar Jean Delvare Committed by Greg Kroah-Hartman

[PATCH] i2c-viapro: Coding style fixes

Before I go on cleaning up and improving the i2c-viapro driver, let's
fix all the coding style issues: mostly trailing white space, and
spaces used where tabs should be.
Signed-off-by: default avatarJean Delvare <khali@linux-fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>

 Documentation/i2c/busses/i2c-viapro |   12 ++---
 drivers/i2c/busses/i2c-viapro.c     |   76 ++++++++++++++++++------------------
 2 files changed, 43 insertions(+), 45 deletions(-)
parent 32c0a520
...@@ -43,5 +43,3 @@ Your lspci -n listing must show one of these : ...@@ -43,5 +43,3 @@ Your lspci -n listing must show one of these :
If none of these show up, you should look in the BIOS for settings like If none of these show up, you should look in the BIOS for settings like
enable ACPI / SMBus or even USB. enable ACPI / SMBus or even USB.
...@@ -68,7 +68,7 @@ static unsigned short vt596_smba; ...@@ -68,7 +68,7 @@ static unsigned short vt596_smba;
/* PCI Address Constants */ /* PCI Address Constants */
/* SMBus data in configuration space can be found in two places, /* SMBus data in configuration space can be found in two places,
We try to select the better one*/ We try to select the better one */
static unsigned short smb_cf_hstcfg = 0xD2; static unsigned short smb_cf_hstcfg = 0xD2;
...@@ -333,7 +333,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev, ...@@ -333,7 +333,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev,
return -ENODEV; return -ENODEV;
} }
found: found:
if (!request_region(vt596_smba, 8, "viapro-smbus")) { if (!request_region(vt596_smba, 8, "viapro-smbus")) {
dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n", dev_err(&pdev->dev, "SMBus region 0x%x already in use!\n",
vt596_smba); vt596_smba);
...@@ -395,7 +395,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev, ...@@ -395,7 +395,7 @@ static int __devinit vt596_probe(struct pci_dev *pdev,
*/ */
return -ENODEV; return -ENODEV;
release_region: release_region:
release_region(vt596_smba, 8); release_region(vt596_smba, 8);
return error; return error;
} }
...@@ -420,7 +420,7 @@ static struct pci_device_id vt596_ids[] = { ...@@ -420,7 +420,7 @@ static struct pci_device_id vt596_ids[] = {
{ 0, } { 0, }
}; };
MODULE_DEVICE_TABLE (pci, vt596_ids); MODULE_DEVICE_TABLE(pci, vt596_ids);
static struct pci_driver vt596_driver = { static struct pci_driver vt596_driver = {
.name = "vt596_smbus", .name = "vt596_smbus",
......
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