Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: nvec: rename led driver to board specific paz00 driver

The led driver used OEM commands which are not part of the nvec protocol
definition. Therefore it is renamed to nvec_paz00 to reflect that it only
applies to PAZ00 board based devices.

Signed-off-by: Marc Dietrich <marvin24@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Marc Dietrich and committed by
Greg Kroah-Hartman
ac562680 ebefae28

+19 -18
+5 -4
drivers/staging/nvec/Kconfig
··· 26 26 Say Y to enable support for battery and charger interface for 27 27 nVidia compliant embedded controllers. 28 28 29 - config NVEC_LEDS 30 - bool "NVEC leds" 31 - depends on MFD_NVEC && LEDS_CLASS 29 + config NVEC_PAZ00 30 + bool "Support for OEM specific functions on Compal PAZ00 based devices" 31 + depends on MFD_NVEC && LEDS_CLASS && MACH_PAZ00 32 32 help 33 - Say Y to enable yellow side leds on AC100 or other nVidia tegra nvec leds 33 + Say Y to enable control of the yellow side leds on Compal PAZ00 based 34 + devices, e.g. Toshbia AC100 and Dynabooks AZ netbooks.
+1 -1
drivers/staging/nvec/Makefile
··· 2 2 obj-$(CONFIG_MFD_NVEC) += nvec.o 3 3 obj-$(CONFIG_NVEC_POWER) += nvec_power.o 4 4 obj-$(CONFIG_KEYBOARD_NVEC) += nvec_kbd.o 5 - obj-$(CONFIG_NVEC_LEDS) += nvec_leds.o 5 + obj-$(CONFIG_NVEC_PAZ00) += nvec_paz00.o
+1 -1
drivers/staging/nvec/nvec.c
··· 97 97 .id = 2, 98 98 }, 99 99 { 100 - .name = "nvec-leds", 100 + .name = "nvec-paz00", 101 101 .id = 1, 102 102 }, 103 103 };
+12 -12
drivers/staging/nvec/nvec_leds.c drivers/staging/nvec/nvec_paz00.c
··· 1 1 /* 2 - * nvec_leds: LED driver for a NVIDIA compliant embedded controller 2 + * nvec_paz00: OEM specific driver for Compal PAZ00 based devices 3 3 * 4 4 * Copyright (C) 2011 The AC100 Kernel Team <ac100@lists.launchpad.net> 5 5 * ··· 43 43 44 44 } 45 45 46 - static int __devinit nvec_led_probe(struct platform_device *pdev) 46 + static int __devinit nvec_paz00_probe(struct platform_device *pdev) 47 47 { 48 48 struct nvec_chip *nvec = dev_get_drvdata(pdev->dev.parent); 49 49 struct nvec_led *led; ··· 56 56 led->cdev.max_brightness = NVEC_LED_MAX; 57 57 58 58 led->cdev.brightness_set = nvec_led_brightness_set; 59 - led->cdev.name = "nvec-led"; 59 + led->cdev.name = "paz00-led"; 60 60 led->cdev.flags |= LED_CORE_SUSPENDRESUME; 61 61 led->nvec = nvec; 62 62 ··· 72 72 return 0; 73 73 } 74 74 75 - static int __devexit nvec_led_remove(struct platform_device *pdev) 75 + static int __devexit nvec_paz00_remove(struct platform_device *pdev) 76 76 { 77 77 struct nvec_led *led = platform_get_drvdata(pdev); 78 78 ··· 81 81 return 0; 82 82 } 83 83 84 - static struct platform_driver nvec_led_driver = { 85 - .probe = nvec_led_probe, 86 - .remove = __devexit_p(nvec_led_remove), 84 + static struct platform_driver nvec_paz00_driver = { 85 + .probe = nvec_paz00_probe, 86 + .remove = __devexit_p(nvec_paz00_remove), 87 87 .driver = { 88 - .name = "nvec-leds", 89 - .owner = THIS_MODULE, 88 + .name = "nvec-paz00", 89 + .owner = THIS_MODULE, 90 90 }, 91 91 }; 92 92 93 - module_platform_driver(nvec_led_driver); 93 + module_platform_driver(nvec_paz00_driver); 94 94 95 95 MODULE_AUTHOR("Ilya Petrov <ilya.muromec@gmail.com>"); 96 - MODULE_DESCRIPTION("Tegra NVEC LED driver"); 96 + MODULE_DESCRIPTION("Tegra NVEC PAZ00 driver"); 97 97 MODULE_LICENSE("GPL"); 98 - MODULE_ALIAS("platform:nvec-leds"); 98 + MODULE_ALIAS("platform:nvec-paz00");