03 Oct, 2019

1 commit

  • Since commit f889beaaab1c ("Input: da9063 - report KEY_POWER instead of
    KEY_SLEEP during power key-press") KEY_SLEEP isn't supported anymore. This
    caused input device to not generate any events if "dlg,disable-key-power"
    is set.

    Fix this by unconditionally setting KEY_POWER capability, and not
    declaring KEY_SLEEP.

    Fixes: f889beaaab1c ("Input: da9063 - report KEY_POWER instead of KEY_SLEEP during power key-press")
    Signed-off-by: Marco Felsch
    Cc: stable@vger.kernel.org
    Signed-off-by: Dmitry Torokhov

    Marco Felsch
     

15 Aug, 2019

1 commit

  • We don't need dev_err() messages when platform_get_irq() fails now that
    platform_get_irq() prints an error message itself when something goes
    wrong. Let's remove these prints with a simple semantic patch.

    //
    @@
    expression ret;
    struct platform_device *E;
    @@

    ret =
    (
    platform_get_irq(E, ...)
    |
    platform_get_irq_byname(E, ...)
    );

    if ( \( ret < 0 \| ret

    While we're here, remove braces on if statements that only have one
    statement (manually).

    Signed-off-by: Stephen Boyd
    Signed-off-by: Dmitry Torokhov

    Stephen Boyd
     

16 Jul, 2019

1 commit


31 May, 2019

1 commit

  • Based on 3 normalized pattern(s):

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version this program is distributed in the
    hope that it will be useful but without any warranty without even
    the implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [kishon] [vijay] [abraham]
    [i] [kishon]@[ti] [com] this program is distributed in the hope that
    it will be useful but without any warranty without even the implied
    warranty of merchantability or fitness for a particular purpose see
    the gnu general public license for more details

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license as published by
    the free software foundation either version 2 of the license or at
    your option any later version [author] [graeme] [gregory]
    [gg]@[slimlogic] [co] [uk] [author] [kishon] [vijay] [abraham] [i]
    [kishon]@[ti] [com] [based] [on] [twl6030]_[usb] [c] [author] [hema]
    [hk] [hemahk]@[ti] [com] this program is distributed in the hope
    that it will be useful but without any warranty without even the
    implied warranty of merchantability or fitness for a particular
    purpose see the gnu general public license for more details

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-or-later

    has been chosen to replace the boilerplate/reference in 1105 file(s).

    Signed-off-by: Thomas Gleixner
    Reviewed-by: Allison Randal
    Reviewed-by: Richard Fontana
    Reviewed-by: Kate Stewart
    Cc: linux-spdx@vger.kernel.org
    Link: https://lkml.kernel.org/r/20190527070033.202006027@linutronix.de
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

21 May, 2019

2 commits


22 Jan, 2017

1 commit


27 Oct, 2016

2 commits

  • If the driver is built as a module, autoload won't work because the module
    alias information is not filled. So user-space can't match the registered
    device with the corresponding module.

    Export the module alias information using the MODULE_DEVICE_TABLE() macro.

    Before this patch:

    $ modinfo drivers/input/misc/da9063_onkey.ko | grep alias
    alias: platform:da9063-onkey

    After this patch:

    $ modinfo drivers/input/misc/da9063_onkey.ko | grep alias
    alias: platform:da9063-onkey
    alias: of:N*T*Cdlg,da9062-onkeyC*
    alias: of:N*T*Cdlg,da9062-onkey
    alias: of:N*T*Cdlg,da9063-onkeyC*
    alias: of:N*T*Cdlg,da9063-onkey

    Signed-off-by: Javier Martinez Canillas
    Signed-off-by: Dmitry Torokhov

    Javier Martinez Canillas
     
  • Copyright header is updated to add DA9061 in its description and the module
    description macro is extended to include DA9061.

    Minor change to the code, alters dev_dbg() statements to report a generic
    "PMIC" instead of DA9063. This device driver is compatible with DA9061,
    DA9062 and DA9063.

    Kconfig is updated to reflect support for DA9061/62/63.

    Signed-off-by: Steve Twiss
    Signed-off-by: Dmitry Torokhov

    Steve Twiss
     

13 Dec, 2015

1 commit

  • Stop reporting KEY_SLEEP for a short key-press and report KEY_POWER instead
    This change applies to both DA9063 and DA9062 ONKEY drivers.

    A previous application used for testing by the developer required a
    KEY_SLEEP and KEY_POWER input_report_key event to distinguish between a
    short and long key-press of the power key. This is not the general
    convention and the typical solution is for KEY_POWER to be used in both
    cases: suspend and S/W power off.

    Signed-off-by: Steve Twiss
    Signed-off-by: Dmitry Torokhov

    Steve Twiss
     

30 Sep, 2015

1 commit

  • Add DA9062 OnKey support into the existing DA9063 OnKey driver component by
    using generic access tables for common register and bit mask definitions.

    The following change will add generic register and bit mask support to the
    DA9063 OnKey.

    The following alterations have been made to the DA9063 OnKey:

    - Addition of a da906x_chip_config structure to hold all
    generic registers and bitmasks for this type of OnKey component.
    - Addition of an struct of_device_id table for DA9063 and DA9062
    defaults
    - Refactoring functions to use struct da9063_onkey accesses to generic
    registers/masks instead of using defines from registers.h
    - Re-work of da9063_onkey_probe() to use of_match_node() and
    dev_get_regmap() to provide initialisation of generic registers and
    masks and access to regmap

    Signed-off-by: Steve Twiss
    Signed-off-by: Dmitry Torokhov

    S Twiss
     

10 Jun, 2015

1 commit