Commit a3712f49 authored by Stefan Brähler's avatar Stefan Brähler Committed by Greg Kroah-Hartman
Browse files

staging: olpc_dcon: fix space and coding issues



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

Signed-off-by: default avatarStefan Brähler <Stefan.Braehler@gmail.com>
Acked-by: default avatarAndres Salomon <dilinger@queued.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent c09c9ae0
Loading
Loading
Loading
Loading
+10 −12
Original line number Diff line number Diff line
@@ -24,8 +24,7 @@
#include "olpc_dcon.h"

/* Hardware setup on the XO 1.5:
 * 	DCONLOAD connects to
 *		VX855_GPIO1 (not SMBCK2)
 *	DCONLOAD connects to VX855_GPIO1 (not SMBCK2)
 *	DCONBLANK connects to VX855_GPIO8 (not SSPICLK)  unused in driver
 *	DCONSTAT0 connects to VX855_GPI10 (not SSPISDI)
 *	DCONSTAT1 connects to VX855_GPI11 (not nSSPISS)
@@ -34,9 +33,9 @@
 *	DCONSMBCLK connects to VX855 graphics CRTSPCLK
 */

#define VX855_GENL_PURPOSE_OUTPUT 0x44c // PMIO_Rx4c-4f
#define VX855_GPI_STATUS_CHG 0x450  // PMIO_Rx50
#define VX855_GPI_SCI_SMI 0x452  // PMIO_Rx52
#define VX855_GENL_PURPOSE_OUTPUT 0x44c /* PMIO_Rx4c-4f */
#define VX855_GPI_STATUS_CHG 0x450  /* PMIO_Rx50 */
#define VX855_GPI_SCI_SMI 0x452  /* PMIO_Rx52 */
#define BIT_GPIO12 0x40

#define PREFIX "OLPC DCON:"
@@ -64,7 +63,6 @@ static int dcon_init_xo_1_5(struct dcon_priv *dcon)
	u_int8_t tmp;
	struct pci_dev *pdev;

	
	pdev = pci_get_device(PCI_VENDOR_ID_VIA,
			      PCI_DEVICE_ID_VIA_VX855, NULL);
	if (!pdev) {
@@ -176,7 +174,7 @@ static u8 dcon_read_status_xo_1_5(void)
	if (!dcon_was_irq())
		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(11)) << 1;

+1 −1

File changed.

Contains only whitespace changes.