08 Jan, 2011

1 commit


03 Jan, 2011

1 commit


27 Dec, 2010

1 commit


12 Dec, 2010

1 commit


10 Dec, 2010

1 commit

  • Neaten current uses of dev_ by adding and using
    hid specific hid_ macros.

    Convert existing uses of dev_ uses to hid_.
    Convert hid-pidff printk uses to hid_.

    Remove err_hid and use hid_err instead.

    Add missing newlines to logging messages where necessary.
    Coalesce format strings.

    Add and use pr_fmt(fmt) KBUILD_MODNAME ": " fmt

    Other miscellaneous changes:

    Add const struct hid_device * argument to hid-core functions
    extract() and implement() so hid_ can be used by them.
    Fix bad indentation in hid-core hid_input_field function
    that calls extract() function above.

    Signed-off-by: Joe Perches
    Signed-off-by: Jiri Kosina

    Joe Perches
     

08 Dec, 2010

1 commit


06 Aug, 2010

2 commits


13 Jul, 2010

3 commits

  • As our device may be hot-unplugged and framebuffer cannot handle
    this case by itself we need to keep track of usage count so as
    to release fb_info and framebuffer memory only after the last user
    has closed framebuffer.

    We need to do the freeing in a scheduled work as fb_release()
    is called with fb_info lock held.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     
  • Reallocating memory in depth change does not work well if some
    userspace application has mmapped() the framebuffer as that mapping
    does not get adjusted (thus application continues to write to old
    buffer).
    In addition doing deferred_io_cleanup() and init() inside of set_par()
    tends to deadlock with fbcon's flashing cursor.

    Avoid all this by allocating a buffer that can hold 8bpp framebuffer
    and just use 1/8 of it while running at 1bpp.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     
  • Add a minimal palette so fbcon does not try to dereference
    a NULL point when fb is set to 8bpp.

    fbcon stores pixels the other way around in bytes for 1bpp
    than intially implemented, correct this.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     

12 Jul, 2010

1 commit


17 May, 2010

1 commit

  • The skip label frees resp, which has not been allocated at the point of
    this goto and then does a break, based on the fact that err is non-zero.
    This is replaced by a break directly.

    A simplified version of the semantic match that finds this problem is as
    follows: (http://coccinelle.lip6.fr/)

    //
    @free@
    expression E;
    position p;
    @@
    kfree@p(E)

    @@
    expression free.E, subE

    Signed-off-by: Julia Lawall
    Signed-off-by: Jiri Kosina

    Julia Lawall
     

03 May, 2010

1 commit


27 Apr, 2010

1 commit

  • Original operation_mode sysfs attribute accepts the operation mode
    as main value with an option delay as second value to change
    the start-up delay on mode change.

    As it is preferred to have exactly one value per sysfs attribute,
    extract this delay into a separate sysfs attribute called
    operation_mode_delay.

    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     

26 Apr, 2010

1 commit


12 Apr, 2010

1 commit

  • HID_PICOLCD should depend on LCD_CLASS_DEVICE, otherwise the
    build fails when HID_PICOLCD=y and LCD_CLASS_DEVICE=m:

    hid-picolcd.c:(.text+0x84523f): undefined reference to `lcd_device_unregister'
    hid-picolcd.c:(.text+0x8478ab): undefined reference to `lcd_device_register'
    hid-picolcd.c:(.text+0x84c15f): undefined reference to `lcd_device_unregister'

    Same applies to FB, BACKLIGHT_CLASS_DEVICE and LEDS_CLASS.

    Add suboptions for those features to handle the deps on kbuild side
    and just check HID_PICOLCD_* in the code.

    Reported-by: Randy Dunlap
    Signed-off-by: Bruno Prémont
    Signed-off-by: Jiri Kosina

    Bruno Prémont
     

01 Apr, 2010

1 commit


31 Mar, 2010

6 commits