/* /proc handlers We write our info in page, we begin at offset off and cannot write more than count bytes. We set eof to 1 if we handle those 2 values. We return the number of bytes written in page  */
static int read_led(const char *ledname, int ledmask)
/* /proc handlers We write our info in page, we begin at offset off and cannot write more than count bytes. We set eof to 1 if we handle those 2 values. We return the number of bytes written in page  */
static int read_led(const char *ledname, int ledmask)
{
	if (ledname) {
		int led_status;
		if (read_acpi_int(NULL, ledname, &led_status))
			return led_status;
		else
			printk(KERN_WARNING "Asus ACPI: Error reading LED "
			       "status\n");
	}
	return (hotk->status & ledmask) ? 1 : 0;
}