04 Jan, 2013

1 commit

  • CONFIG_HOTPLUG is going away as an option. As a result, the __dev*
    markings need to be removed.

    This change removes the use of __devinit, __devexit_p, __devinitdata,
    __devinitconst, and __devexit from these drivers.

    Based on patches originally written by Bill Pemberton, but redone by me
    in order to handle some of the coding style issues better, by hand.

    Cc: Bill Pemberton
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

13 Feb, 2012

1 commit


13 Jan, 2012

1 commit


23 Mar, 2011

1 commit

  • There may be multiple ways of controlling the backlight on a given
    machine. Allow drivers to expose the type of interface they are
    providing, making it possible for userspace to make appropriate policy
    decisions.

    Signed-off-by: Matthew Garrett
    Cc: Richard Purdie
    Cc: Chris Wilson
    Cc: David Airlie
    Cc: Alex Deucher
    Cc: Ben Skeggs
    Cc: Zhang Rui
    Cc: Len Brown
    Cc: Jesse Barnes
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Matthew Garrett
     

23 Dec, 2010

1 commit


16 Nov, 2010

2 commits

  • backlight_device_register has been expecting a const "ops" argument, and using
    it as such, since 9905a43b2d563e6f89e4c63c4278ada03f2ebb14. Let's make the
    remaining backlight_ops instances const.

    Inspired by hunks of the grsecurity patch, updated for newer kernels.

    Signed-off-by: Lionel Debroux
    Acked-by: Ingo Molnar
    Signed-off-by: Jiri Kosina

    Lionel Debroux
     
  • Delete unused I2C adapter IDs. Special cases are:

    * I2C_HW_B_RIVA was still set in driver rivafb, however no other
    driver is ever looking for this value, so we can safely remove it.
    * I2C_HW_B_HDPVR is used in staging driver lirc_zilog, however no
    adapter ID is ever set to this value, so the code in question never
    runs. As the code additionally expects that I2C_HW_B_HDPVR may not
    be defined, we can delete it now and let the lirc_zilog driver
    maintainer rewrite this piece of code.

    Big thanks for Hans Verkuil for doing all the hard work :)

    Signed-off-by: Jean Delvare
    Acked-by: Jarod Wilson
    Acked-by: Mauro Carvalho Chehab
    Acked-by: Hans Verkuil

    Jean Delvare
     

17 Mar, 2010

1 commit


28 Apr, 2008

4 commits


23 Jul, 2007

1 commit


22 Jul, 2007

1 commit

  • WARNING: drivers/built-in.o(.text+0x57106): Section mismatch: reference to .init.text:rivafb_setup (between 'rivafb_init' and 'nv3Busy')

    Signed-off-by: Adrian Bunk
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     

18 Jul, 2007

1 commit


16 Jul, 2007

1 commit

  • Convert the backlight and LCD classes from struct class_device
    to struct device since class_device is scheduled for removal.

    One nasty API break is the backlight power attribute has had to be
    renamed to bl_power and the LCD power attribute has had to be renamed
    to lcd_power since the original names clash with the core. I can't see
    a way around this.

    Signed-off-by: Richard Purdie
    Acked-by: Greg Kroah-Hartman

    Richard Purdie
     

11 May, 2007

1 commit


09 May, 2007

9 commits

  • * 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: (77 commits)
    [POWERPC] Abolish powerpc_flash_init()
    [POWERPC] Early serial debug support for PPC44x
    [POWERPC] Support for the Ebony 440GP reference board in arch/powerpc
    [POWERPC] Add device tree for Ebony
    [POWERPC] Add powerpc/platforms/44x, disable platforms/4xx for now
    [POWERPC] MPIC U3/U4 MSI backend
    [POWERPC] MPIC MSI allocator
    [POWERPC] Enable MSI mappings for MPIC
    [POWERPC] Tell Phyp we support MSI
    [POWERPC] RTAS MSI implementation
    [POWERPC] PowerPC MSI infrastructure
    [POWERPC] Rip out the existing powerpc msi stubs
    [POWERPC] Remove use of 4level-fixup.h for ppc32
    [POWERPC] Add powerpc PCI-E reset API implementation
    [POWERPC] Holly bootwrapper
    [POWERPC] Holly DTS
    [POWERPC] Holly defconfig
    [POWERPC] Add support for 750CL Holly board
    [POWERPC] Generalize tsi108 PCI setup
    [POWERPC] Generalize tsi108 PHY types
    ...

    Fixed conflict in include/asm-powerpc/kdebug.h manually

    Signed-off-by: Linus Torvalds

    Linus Torvalds
     
  • Switch to pci_get refcounting APIs

    [adaplas]
    Fix a long-standing bug where the return value of
    pci_find_slot()/pci_get_bus_and_slot() is ignored.

    Signed-off-by: Alan Cox
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alan Cox
     
  • Fix IO access, with the following sparse warnings:

    drivers/video/riva/fbdev.c:320:25: warning: dereference of noderef expression
    drivers/video/riva/fbdev.c:321:29: warning: dereference of noderef expression
    drivers/video/riva/fbdev.c:327:18: warning: dereference of noderef expression
    drivers/video/riva/fbdev.c:328:15: warning: dereference of noderef expression

    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Fixed reversed DDC port so assignments are congruent with nvidiafb's and X's
    nv driver.

    Signed-off-by: Antonino Daplas
    Cc: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Antonino A. Daplas
     
  • Various cleanups to rivafb/nvidiafb's I2C code:
    * Drop useless par->bus.
    * Refactor I2C bus deletion code.
    * Drop useless variable initialization.
    * Remove unneeded include of .
    * Simplify +1/-1.
    * Add __devinit tags where possible.

    [adaplas]
    The varible initialization are not useless. However, rivafb must
    check if i2c bus are created properly before reading the EDID
    block.

    Signed-off-by: Jean Delvare
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • I2C bus creation may fail, let rivafb handle that case properly.

    Signed-off-by: Jean Delvare
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • Let the hardware monitoring drivers probe the second rivafb/nvidiafb I2C bus
    for devices.

    Signed-off-by: Jean Delvare
    Signed-off-by: Antonino Daplas
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     
  • Signed-off-by: Robert P. J. Day
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Robert P. J. Day
     
  • Change rivafb_remove to __deviexit to fix MODPOST warnings:

    WARNING: drivers/video/riva/rivafb.o - Section mismatch: reference to
    .exit.text:rivafb_remove from .data.rel.local after 'rivafb_driver' (at offset 0x28)

    Signed-off-by: Prarit Bhargava
    Acked-by: James Simmons
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Prarit Bhargava
     

02 May, 2007

1 commit


24 Mar, 2007

1 commit

  • This is the rivafb equivalent of 238576e12fef1d52751c6e08db2d0bdb0e248caf.
    It fixes rivafb having a default backlight brightness of 0 (no picture at
    all) on a PBook 6,1.

    Signed-off-by: Guido Guenther
    Cc: "Antonino A. Daplas"
    Acked-by: Richard Purdie
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Guido Guenther
     

05 Mar, 2007

1 commit


20 Feb, 2007

6 commits

  • Per device data such as brightness belongs to the indivdual device
    and should therefore be separate from the the backlight operation
    function pointers. This patch splits the two types of data and
    allows simplifcation of some code.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • Move the setting/unsetting of pmac_backlight into the
    backlight core instead of doing it in each driver.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • fb_info->bl_mutex is badly thought out and the backlight class doesn't
    need it if the framebuffer/backlight register/unregister order is
    consistent, particularly after the backlight locking fixes.

    Fix the drivers to use the order:

    backlight_device_register()
    register_framebuffer()
    unregister_framebuffer()
    backlight_device_unregister()

    and turn bl_mutex into a lock for the bl_curve data only.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • The backlight core listens for blanking events and triggers a
    backlight_update_status call so these extra calls are not
    needed and can be removed.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • backlight_device->sem has a very specific use as documented in the
    header file. The external users of this are using it for a different
    reason, to serialise access to the update_status() method.

    backlight users were supposed to implement their own internal
    serialisation of update_status() if needed but everyone is doing
    things differently and incorrectly. Therefore add a global mutex to
    take care of serialisation for everyone, once and for all.

    Locking for get_brightness remains optional since most users don't
    need it.

    Also update the lcd class in a similar way.

    Signed-off-by: Richard Purdie

    Richard Purdie
     
  • Remove uneeded owner field from backlight_properties structure.

    Nothing uses it and it is unlikely that it will ever be used. The
    backlight class uses other means to ensure that nothing references
    unloaded code.

    Based on a patch from Dmitry Torokhov

    Signed-off-by: Richard Purdie

    Richard Purdie
     

15 Feb, 2007

1 commit

  • After Al Viro (finally) succeeded in removing the sched.h #include in module.h
    recently, it makes sense again to remove other superfluous sched.h includes.
    There are quite a lot of files which include it but don't actually need
    anything defined in there. Presumably these includes were once needed for
    macros that used to live in sched.h, but moved to other header files in the
    course of cleaning it up.

    To ease the pain, this time I did not fiddle with any header files and only
    removed #includes from .c-files, which tend to cause less trouble.

    Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
    arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
    allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
    configs in arch/arm/configs on arm. I also checked that no new warnings were
    introduced by the patch (actually, some warnings are removed that were emitted
    by unnecessarily included header files).

    Signed-off-by: Tim Schmielau
    Acked-by: Russell King
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     

13 Feb, 2007

3 commits


20 Dec, 2006

1 commit