16 Jan, 2009
1 commit
-
Move the second part of the HP laptop disk protection functionality (a red
led) to the same driver. From a purely Linux developer's point of view,
the led and the accelerometer have nothing related. However, they
correspond to the same ACPI functionality, and so will always be used
together, moreover as they share the same ACPI PNP alias, there is no
other simple to allow to have same loaded at the same time if they are not
in the same module. Also make it requires the led class to compile and
update the Kconfig text.Signed-off-by: Pavel Machek
Signed-off-by: Eric Piel
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
09 Jan, 2009
2 commits
-
Signed-off-by: Rodolfo Giometti
Signed-off-by: Richard Purdie -
Add suspend/resume to the core class and remove all the now unneeded
code from various drivers. Originally the class code couldn't support
suspend/resume but since class_device can there is no reason for
each driver doing its own suspend/resume anymore.
08 Jan, 2009
9 commits
-
The voltage and current regulators on the WM8350 AudioPlus PMIC can be
used in concert to provide a power efficient LED driver. This driver
implements support for this within the standard LED class.Platform initialisation code should configure the LED hardware in the
init callback provided by the WM8350 core driver. The callback should
use wm8350_isink_set_flash(), wm8350_dcdc25_set_mode() and
wm8350_dcdc_set_slot() to configure the operating parameters of the
regulators for their hardware and then then use wm8350_register_led() to
instantiate the LED driver.This driver was originally written by Liam Girdwood, though it has been
extensively modified since then.Signed-off-by: Mark Brown
Signed-off-by: Richard Purdie -
Apparently these might be called under atomic context,
and i2c operations may sleep. BUG found by
Ross BurtonSigned-off-by: Riku Voipio
Signed-off-by: Richard Purdie -
When the registration fails, we need to release the memory we allocated.
Also we need to save the error from led_classdev_register and propagate
it up, else we'll return success, even if we failed.Signed-off-by: Riku Voipio
Signed-off-by: Richard Purdie -
We want to go upwards, not downwards.
Signed-off-by: Sven Wegener
Signed-off-by: Richard Purdie -
Cobalt Raq LEDs require LEDS_CLASS=y.
Signed-off-by: Yoichi Yuasa
Signed-off-by: Andrew Morton
Signed-off-by: Richard Purdie -
drivers/leds/leds-ams-delta.c:154:2: warning: returning void-valued expression
Signed-off-by: Sven Wegener
Signed-off-by: Richard Purdie -
Signed-off-by: Sven Wegener
Signed-off-by: Richard Purdie -
Signed-off-by: Sven Wegener
Signed-off-by: Andrew Morton
Signed-off-by: Richard Purdie -
Driver for PC Engines ALIX.2 and ALIX.3 LEDs.
Signed-off-by: Constantin Baranov
Signed-off-by: Richard Purdie
02 Nov, 2008
1 commit
-
The file(s) below do not use LINUX_VERSION_CODE nor KERNEL_VERSION.
drivers/leds/leds-hp-disk.c
drivers/misc/panasonic-laptop.cThis patch removes the said #include .
Signed-off-by: Huang Weiyi
Signed-off-by: Linus Torvalds
30 Oct, 2008
1 commit
-
The brightness control register calculation (for the pwm) is
effectively the reverse of what would be expected.
1 is maximum brightness, 255 minimum.This patch inverts this.
Signed-off-by: Jonathan Cameron
Acked-by: Mike Rapoport
Signed-off-by: Eric Miao
27 Oct, 2008
1 commit
-
The leds-da903x LED driver was missing the proper #include of
linux/workqueue.h, but happened to compile on ARM due to implied
includes through other header files.We do need the explict include on other architectures (reported at least
for x86-64).Reported-tested-and-acked-by: Jean Delvare
Signed-off-by: Eric Miao
Signed-off-by: Linus Torvalds
25 Oct, 2008
1 commit
-
drivers/leds/leds-hp-disk.c:59: warning: passing argument 4 of ‘acpi_evaluate_integer’ from incompatible pointer type
Signed-off-by: Len Brown
24 Oct, 2008
2 commits
-
* 'for-linus' of git://git.o-hand.com/linux-rpurdie-leds:
leds/acpi: Fix merge fallout from acpi_driver_data change
leds: Simplify logic in leds-ams-delta
leds: Fix trigger registration race
leds: Fix leds-class.c comment
leds: Add driver for HP harddisk protection LEDs
leds: leds-pca955x - Mark pca955x_led_set() static
leds: Remove uneeded leds-cm-x270 driver
leds: Remove uneeded strlen calls
leds: Add leds-wrap default-trigger
leds: Make default trigger fields const
leds: Add backlight LED trigger
leds: da903x: Add support for LEDs found on DA9030/DA9034 -
Signed-off-by: Stephen Rothwell
Signed-off-by: Richard Purdie
21 Oct, 2008
11 commits
-
Simplify logic in leds-ams-delta after various new drivers
writers misunderstood it.Signed-off-by: Richard Purdie
-
Fix a race during trigger registration where we could try and use a lock
before it was initialised.Signed-off-by: Richard Purdie
-
led_classdev_unregister() has no "__" prefix, remove it.
Signed-off-by: Qinghuang Feng
Signed-off-by: Richard Purdie -
HP notebooks contain accelerometer-based disk protection subsystem,
and LED that indicates hard disk is protected. This is driver for the
LED part.Signed-off-by: Pavel Machek
Signed-off-by: Richard Purdie -
Mark pca955x_led_set() as static
Signed-off-by: Sven Wegener
Signed-off-by: Richard Purdie -
The cm-x270 board uses leds-gpio so remove the now unneeded driver.
Acked-by: Mike Rapoport
Signed-off-by: Richard Purdie -
There's no need for the additional call to strlen(), we can directly
return the value returned by sprintf(). We now return a length value
that doesn't include the final '\0', but user space shouldn't bother
about it anyway.Signed-off-by: Sven Wegener
Signed-off-by: Andrew Morton
Signed-off-by: Richard Purdie -
The power led is normally lit after boot, let's use the default-on
trigger as the default trigger for it. This gets the initial brightness
value right and being on is the default behaviour we expect for a power
led.Signed-off-by: Sven Wegener
Signed-off-by: Andrew Morton
Signed-off-by: Richard Purdie -
This allows LEDs to be controlled as a backlight device where
they turn off and on when the display is blanked and unblanked.
This is useful where you need various key backlight LEDs to
dim at the same time as the backlight.Signed-off-by: Rodolfo Giometti
Signed-off-by: Richard Purdie -
Signed-off-by: Mike Rapoport
Signed-off-by: Eric Miao
Signed-off-by: Richard Purdie -
* git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6: (36 commits)
ide: re-add TRM290 fix lost during ide_build_dmatable() cleanup
scc_pata: kill unused variables
sgiioc4: kill duplicate ioremap()
sgiioc4: kill useless address checks
delkin_cb: add PM support
ide: remove broken hpt34x driver
ide-floppy: remove idefloppy_floppy_t typedef
sgiioc4: remove maskproc() method
hpt366: cleanup maskproc() method
ide: mask interrupt in ide_config_drive_speed()
hpt366: fix compile warning
ide: remove unused macros from
ide: remove M68K_IDE_SWAPW define from
ide: remove dead
ide: fix support for IDE PCI controllers using MMIO on frv
ide-cd: remove stale comment
ide-cd: small drive type print fix
ide-cd: debug log enhancements
ide: add generic ATA/ATAPI disk driver
ide: allow device drivers to specify per-device type /proc settings
...
20 Oct, 2008
1 commit
-
Signed-off-by: Paul Mundt
18 Oct, 2008
1 commit
-
* Add struct ide_disk_ops containing protocol specific methods.
* Add 'struct ide_disk_ops *' to ide_drive_t.
* Convert ide-{disk,floppy} drivers to use struct ide_disk_ops.
* Merge ide-{disk,floppy} drivers into generic ide-gd driver.
While at it:
- ide_disk_init_capacity() -> ide_disk_get_capacity()Acked-by: Borislav Petkov
Signed-off-by: Bartlomiej Zolnierkiewicz
17 Oct, 2008
1 commit
-
Now that device_create() has been audited, rename things back to the
original call to be sane.Signed-off-by: Greg Kroah-Hartman
12 Oct, 2008
2 commits
-
Conflicts:
sound/core/memalloc.c
-
* 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm: (236 commits)
[ARM] 5300/1: fixup spitz reset during boot
[ARM] 5295/1: make ZONE_DMA optional
[ARM] 5239/1: Palm Zire 72 power management support
[ARM] 5298/1: Drop desc_handle_irq()
[ARM] 5297/1: [KS8695] Fix two compile-time warnings
[ARM] 5296/1: [KS8695] Replace macro's with trailing underscores.
[ARM] pxa: allow multi-machine PCMCIA builds
[ARM] pxa: add preliminary CPUFREQ support for PXA3xx
[ARM] pxa: add missing ACCR bit definitions to pxa3xx-regs.h
[ARM] pxa: rename cpu-pxa.c to cpufreq-pxa2xx.c
[ARM] pxa/zylonite: add support for USB OHCI
[ARM] ohci-pxa27x: use ioremap() and offset for register access
[ARM] ohci-pxa27x: introduce pxa27x_clear_otgph()
[ARM] ohci-pxa27x: use platform_get_{irq,resource} for the resource
[ARM] ohci-pxa27x: move OHCI controller specific registers into the driver
[ARM] ohci-pxa27x: introduce flags to avoid direct access to OHCI registers
[ARM] pxa: move I2S register and bit definitions into pxa2xx-i2s.c
[ARM] pxa: simplify DMA register definitions
[ARM] pxa: make additional DCSR bits valid for PXA3xx
[ARM] pxa: move i2c register and bit definitions into i2c-pxa.c
...Fixed up conflicts in
arch/arm/mach-versatile/core.c
sound/soc/pxa/pxa2xx-ac97.c
sound/soc/pxa/pxa2xx-i2s.c
manually.
04 Oct, 2008
2 commits
-
Check the return value of led_classdev_register and unregister all
registered devices, if registering one device fails. Also the dynamic
memory handling is totally bogus. You can't allocate multiple chunks via
kzalloc() and expect them to be in order later. I wonder how this ever
worked.Signed-off-by: Sven Wegener
Acked-by: Nate Case
Tested-by: Nate Case
Acked-by: Richard Purdie
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds -
On initialization, we first do the ioremap and then register the led devices.
On deinitialization, we do it in reverse order. This prevents someone calling
into the brightness_set functions with an invalid latch_address.Signed-off-by: Sven Wegener
Acked-by: Rod Whitby
Acked-by: Richard Purdie
Signed-off-by: Andrew Morton
Signed-off-by: Linus Torvalds
24 Sep, 2008
2 commits
-
Now as the scoop pins are covered by the generic gpio API,
we can use leds-gpio driver instead of special leds-spitzDrop leds-spitz.c and the declarations of now un-referenced
spitzscoop_device, spitzscoop2_device.Signed-off-by: Dmitry Baryshkov
Cc: Richard Purdie
Signed-off-by: Eric Miao
Signed-off-by: Russell King -
Now as the scoop pins are covered by the generic gpio API,
we can use leds-gpio driver instead of special leds-corgiDrop leds-corgi.c and remove the declaration of now un-referenced
corgiscoop_device.Signed-off-by: Dmitry Baryshkov
Cc: Richard Purdie
Signed-off-by: Eric Miao
Signed-off-by: Russell King
01 Sep, 2008
1 commit
-
Signed-off-by: David S. Miller
07 Aug, 2008
1 commit
-
This just leaves include/asm-arm/plat-* to deal with.
Signed-off-by: Russell King