panasonic-laptop.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) | panasonic-laptop.c (bb7ca747f8d6243b3943c5b133048652020f4a50) |
---|---|
1/* 2 * Panasonic HotKey and LCD brightness control driver 3 * (C) 2004 Hiroshi Miura <miura@da-cha.org> 4 * (C) 2004 NTT DATA Intellilink Co. http://www.intellilink.co.jp/ 5 * (C) YOKOTA Hiroshi <yokota (at) netlab. is. tsukuba. ac. jp> 6 * (C) 2004 David Bronaugh <dbronaugh> 7 * (C) 2006-2008 Harald Welte <laforge@gnumonks.org> 8 * --- 588 unchanged lines hidden (view full) --- 597 if (!acpi_pcc_retrieve_biosdata(pcc)) { 598 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 599 "Couldn't retrieve BIOS data\n")); 600 result = -EIO; 601 goto out_input; 602 } 603 /* initialize backlight */ 604 memset(&props, 0, sizeof(struct backlight_properties)); | 1/* 2 * Panasonic HotKey and LCD brightness control driver 3 * (C) 2004 Hiroshi Miura <miura@da-cha.org> 4 * (C) 2004 NTT DATA Intellilink Co. http://www.intellilink.co.jp/ 5 * (C) YOKOTA Hiroshi <yokota (at) netlab. is. tsukuba. ac. jp> 6 * (C) 2004 David Bronaugh <dbronaugh> 7 * (C) 2006-2008 Harald Welte <laforge@gnumonks.org> 8 * --- 588 unchanged lines hidden (view full) --- 597 if (!acpi_pcc_retrieve_biosdata(pcc)) { 598 ACPI_DEBUG_PRINT((ACPI_DB_ERROR, 599 "Couldn't retrieve BIOS data\n")); 600 result = -EIO; 601 goto out_input; 602 } 603 /* initialize backlight */ 604 memset(&props, 0, sizeof(struct backlight_properties)); |
605 props.type = BACKLIGHT_PLATFORM; |
|
605 props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT]; 606 pcc->backlight = backlight_device_register("panasonic", NULL, pcc, 607 &pcc_backlight_ops, &props); 608 if (IS_ERR(pcc->backlight)) { 609 result = PTR_ERR(pcc->backlight); 610 goto out_input; 611 } 612 --- 68 unchanged lines hidden --- | 606 props.max_brightness = pcc->sinf[SINF_AC_MAX_BRIGHT]; 607 pcc->backlight = backlight_device_register("panasonic", NULL, pcc, 608 &pcc_backlight_ops, &props); 609 if (IS_ERR(pcc->backlight)) { 610 result = PTR_ERR(pcc->backlight); 611 goto out_input; 612 } 613 --- 68 unchanged lines hidden --- |