Commit dec63ec3 authored by Dmitry Torokhov's avatar Dmitry Torokhov Committed by Linus Torvalds
Browse files

[PATCH] I8K: pass through lindent



I8K: pass through Lindent to change 4 spaces identation to TABs

Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3f5f7e2e
Loading
Loading
Loading
Loading
+475 −475
Original line number Diff line number Diff line
@@ -113,29 +113,28 @@ static int i8k_smm(SMMRegisters *regs)
	int rc;
	int eax = regs->eax;

    asm("pushl %%eax\n\t" \
	"movl 0(%%eax),%%edx\n\t" \
	"push %%edx\n\t" \
	"movl 4(%%eax),%%ebx\n\t" \
	"movl 8(%%eax),%%ecx\n\t" \
	"movl 12(%%eax),%%edx\n\t" \
	"movl 16(%%eax),%%esi\n\t" \
	"movl 20(%%eax),%%edi\n\t" \
	"popl %%eax\n\t" \
	"out %%al,$0xb2\n\t" \
	"out %%al,$0x84\n\t" \
	asm("pushl %%eax\n\t"
	    "movl 0(%%eax),%%edx\n\t"
	    "push %%edx\n\t"
	    "movl 4(%%eax),%%ebx\n\t"
	    "movl 8(%%eax),%%ecx\n\t"
	    "movl 12(%%eax),%%edx\n\t"
	    "movl 16(%%eax),%%esi\n\t"
	    "movl 20(%%eax),%%edi\n\t"
	    "popl %%eax\n\t"
	    "out %%al,$0xb2\n\t"
	    "out %%al,$0x84\n\t"
	    "xchgl %%eax,(%%esp)\n\t"
	"movl %%ebx,4(%%eax)\n\t" \
	"movl %%ecx,8(%%eax)\n\t" \
	"movl %%edx,12(%%eax)\n\t" \
	"movl %%esi,16(%%eax)\n\t" \
	"movl %%edi,20(%%eax)\n\t" \
	"popl %%edx\n\t" \
	"movl %%edx,0(%%eax)\n\t" \
	"lahf\n\t" \
	"shrl $8,%%eax\n\t" \
	"andl $1,%%eax\n" \
	: "=a" (rc)
	    "movl %%ebx,4(%%eax)\n\t"
	    "movl %%ecx,8(%%eax)\n\t"
	    "movl %%edx,12(%%eax)\n\t"
	    "movl %%esi,16(%%eax)\n\t"
	    "movl %%edi,20(%%eax)\n\t"
	    "popl %%edx\n\t"
	    "movl %%edx,0(%%eax)\n\t"
	    "lahf\n\t"
	    "shrl $8,%%eax\n\t"
	    "andl $1,%%eax\n":"=a"(rc)
	    :    "a"(regs)
	    :    "%ebx", "%ecx", "%edx", "%esi", "%edi", "memory");

@@ -455,16 +454,13 @@ static int i8k_get_info(char *buffer, char **start, off_t fpos, int length)
		    serial_number,
		    cpu_temp,
		    left_fan,
		right_fan,
		left_speed,
		right_speed,
		ac_power,
		fn_key);
		    right_fan, left_speed, right_speed, ac_power, fn_key);

	return n;
}

static ssize_t i8k_read(struct file *f, char __user *buffer, size_t len, loff_t *fpos)
static ssize_t i8k_read(struct file *f, char __user * buffer, size_t len,
			loff_t * fpos)
{
	int n;
	char info[128];
@@ -576,7 +572,8 @@ static void __init dmi_decode(DMIHeader *dmi)
	}
}

static int __init dmi_table(u32 base, int len, int num, void (*fn)(DMIHeader*))
static int __init dmi_table(u32 base, int len, int num,
			    void (*fn) (DMIHeader *))
{
	u8 *buf;
	u8 *data;
@@ -637,10 +634,10 @@ static int __init dmi_iterate(void (*decode)(DMIHeader *))
			printk(KERN_INFO "DMI %d.%d present.\n",
			       buf[14] >> 4, buf[14] & 0x0F);
			printk(KERN_INFO "%d structures occupying %d bytes.\n",
			   buf[13]<<8 | buf[12],
			   buf [7]<<8 | buf[6]);
			       buf[13] << 8 | buf[12], buf[7] << 8 | buf[6]);
			printk(KERN_INFO "DMI table at 0x%08X.\n",
			   buf[11]<<24 | buf[10]<<16 | buf[9]<<8 | buf[8]);
			       buf[11] << 24 | buf[10] << 16 | buf[9] << 8 |
			       buf[8]);
#endif
			if (dmi_table(base, len, num, decode) == 0) {
				iounmap(p);
@@ -651,6 +648,7 @@ static int __init dmi_iterate(void (*decode)(DMIHeader *))
	iounmap(p);
	return -1;
}

/* end of DMI code */

/*
@@ -672,7 +670,8 @@ static int __init i8k_dmi_probe(void)

	for (p = supported_models;; p++) {
		if (!*p) {
	    printk(KERN_INFO "i8k: unsupported model: %s\n", product_name);
			printk(KERN_INFO "i8k: unsupported model: %s\n",
			       product_name);
			return -ENODEV;
		}
		if (strncmp(product_name, *p, strlen(*p)) == 0) {
@@ -731,8 +730,9 @@ static int __init i8k_probe(void)
		 * Check if the two versions match.
		 */
		if (strncmp(buff, bios_version, sizeof(bios_version)) != 0) {
	    printk(KERN_INFO "i8k: BIOS version mismatch: %s != %s\n",
		   buff, bios_version);
			printk(KERN_INFO
			       "i8k: BIOS version mismatch: %s != %s\n", buff,
			       bios_version);
		}
	}