staging: olpc_dcon: fix space and coding issues

Fix the whitespace and coding style issues in olpc_dcon metioned by
checkpatch.

Signed-off-by: Stefan Brähler <Stefan.Braehler@gmail.com>
Acked-by: Andres Salomon <dilinger@queued.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Stefan Brähler 2011-04-12 19:53:31 +02:00 committed by Greg Kroah-Hartman
parent c09c9ae0a8
commit a3712f4987
2 changed files with 11 additions and 13 deletions

View File

@ -24,8 +24,7 @@
#include "olpc_dcon.h" #include "olpc_dcon.h"
/* Hardware setup on the XO 1.5: /* Hardware setup on the XO 1.5:
* DCONLOAD connects to * DCONLOAD connects to VX855_GPIO1 (not SMBCK2)
* VX855_GPIO1 (not SMBCK2)
* DCONBLANK connects to VX855_GPIO8 (not SSPICLK) unused in driver * DCONBLANK connects to VX855_GPIO8 (not SSPICLK) unused in driver
* DCONSTAT0 connects to VX855_GPI10 (not SSPISDI) * DCONSTAT0 connects to VX855_GPI10 (not SSPISDI)
* DCONSTAT1 connects to VX855_GPI11 (not nSSPISS) * DCONSTAT1 connects to VX855_GPI11 (not nSSPISS)
@ -34,9 +33,9 @@
* DCONSMBCLK connects to VX855 graphics CRTSPCLK * DCONSMBCLK connects to VX855 graphics CRTSPCLK
*/ */
#define VX855_GENL_PURPOSE_OUTPUT 0x44c // PMIO_Rx4c-4f #define VX855_GENL_PURPOSE_OUTPUT 0x44c /* PMIO_Rx4c-4f */
#define VX855_GPI_STATUS_CHG 0x450 // PMIO_Rx50 #define VX855_GPI_STATUS_CHG 0x450 /* PMIO_Rx50 */
#define VX855_GPI_SCI_SMI 0x452 // PMIO_Rx52 #define VX855_GPI_SCI_SMI 0x452 /* PMIO_Rx52 */
#define BIT_GPIO12 0x40 #define BIT_GPIO12 0x40
#define PREFIX "OLPC DCON:" #define PREFIX "OLPC DCON:"
@ -64,7 +63,6 @@ static int dcon_init_xo_1_5(struct dcon_priv *dcon)
u_int8_t tmp; u_int8_t tmp;
struct pci_dev *pdev; struct pci_dev *pdev;
pdev = pci_get_device(PCI_VENDOR_ID_VIA, pdev = pci_get_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VX855, NULL); PCI_DEVICE_ID_VIA_VX855, NULL);
if (!pdev) { if (!pdev) {
@ -176,7 +174,7 @@ static u8 dcon_read_status_xo_1_5(void)
if (!dcon_was_irq()) if (!dcon_was_irq())
return -1; return -1;
// i believe this is the same as "inb(0x44b) & 3" /* i believe this is the same as "inb(0x44b) & 3" */
status = gpio_get_value(VX855_GPI(10)); status = gpio_get_value(VX855_GPI(10));
status |= gpio_get_value(VX855_GPI(11)) << 1; status |= gpio_get_value(VX855_GPI(11)) << 1;