19 Jun, 2019

1 commit

  • Based on 2 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 version 2 as
    published by the free software foundation

    this program is free software you can redistribute it and or modify
    it under the terms of the gnu general public license version 2 as
    published by the free software foundation #

    extracted by the scancode license scanner the SPDX license identifier

    GPL-2.0-only

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

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

    Thomas Gleixner
     

21 Mar, 2018

1 commit


09 Jan, 2017

1 commit


08 Aug, 2016

1 commit


02 Jul, 2016

1 commit

  • adding suspend and resume funtionality for extcon-adc-jack
    driver to configure system wake up for extcon events,
    also adding support to enable/disable system wakeup
    through flag wakeup_source based on platform requirement.

    Signed-off-by: Venkat Reddy Talla
    Signed-off-by: Chanwoo Choi

    Venkat Reddy Talla
     

30 Sep, 2015

2 commits


22 May, 2015

1 commit

  • This patch uses the unique id to identify the type of external connector instead
    of string name. The string name have the many potential issues. So, this patch
    defines the 'extcon' enumeration which includes all supported external connector
    on EXTCON subsystem. If new external connector is necessary, the unique id of
    new connector have to be added in 'extcon' enumeration. There are current
    supported external connector in 'enum extcon' as following:

    enum extcon {
    EXTCON_NONE = 0x0,

    /* USB external connector */
    EXTCON_USB = 0x1,
    EXTCON_USB_HOST = 0x2,

    /* Charger external connector */
    EXTCON_TA = 0x10,
    EXTCON_FAST_CHARGER = 0x11,
    EXTCON_SLOW_CHARGER = 0x12,
    EXTCON_CHARGE_DOWNSTREAM = 0x13,

    /* Audio and video external connector */
    EXTCON_LINE_IN = 0x20,
    EXTCON_LINE_OUT = 0x21,
    EXTCON_MICROPHONE = 0x22,
    EXTCON_HEADPHONE = 0x23,

    EXTCON_HDMI = 0x30,
    EXTCON_MHL = 0x31,
    EXTCON_DVI = 0x32,
    EXTCON_VGA = 0x33,
    EXTCON_SPDIF_IN = 0x34,
    EXTCON_SPDIF_OUT = 0x35,
    EXTCON_VIDEO_IN = 0x36,
    EXTCON_VIDEO_OUT = 0x37,

    /* Miscellaneous external connector */
    EXTCON_DOCK = 0x50,
    EXTCON_JIG = 0x51,
    EXTCON_MECHANICAL = 0x52,

    EXTCON_END,
    };

    For example in extcon-arizona.c:
    To use unique id removes the potential issue about handling
    the inconsistent name of external connector with string.
    - Previously, use the string to register the type of arizona jack connector
    static const char *arizona_cable[] = {
    "Mechanical",
    "Microphone",
    "Headphone",
    "Line-out",
    };
    - Newly, use the unique id to register the type of arizona jack connector
    static const enum extcon arizona_cable[] = {
    EXTCON_MECHANICAL,
    EXTCON_MICROPHONE,
    EXTCON_HEADPHONE,
    EXTCON_LINE_OUT,

    EXTCON_NONE,
    };

    And this patch modify the prototype of extcon_{get|set}_cable_state_() which
    uses the 'enum extcon id' instead of 'cable_index'. Because although one more
    extcon drivers support USB cable, each extcon driver might has the differnt
    'cable_index' for USB cable. All extcon drivers can use the unique id number
    for same external connector with modified extcon_{get|set}_cable_state_().

    - Previously, use 'cable_index' on these functions:
    extcon_get_cable_state_(struct extcon_dev*, int cable_index)
    extcon_set_cable_state_(struct extcon_dev*, int cable_index, bool state)

    -Newly, use 'enum extcon id' on these functions:
    extcon_get_cable_state_(struct extcon_dev*, enum extcon id)
    extcon_set_cable_state_(struct extcon_dev*, enum extcon id, bool state)

    Cc: Arnd Bergmann
    Cc: Felipe Balbi
    Signed-off-by: Chanwoo Choi
    Acked-by: Roger Quadros
    Acked-by: Charles Keepax
    Acked-by: Ramakrishna Pallala
    Reviewed-by: Krzysztof Kozlowski
    [arnd: Report the build break about drivers/usb/phy/phy-tahvo.c after using the
    unique id for external connector insteadf of string]
    Reported-by: Arnd Bergmann
    [dan.carpenter: Report the build warning of extcon_{set|get}_cable_state_()]
    Reported-by: Dan Carpenter

    Chanwoo Choi
     

22 Sep, 2014

2 commits

  • This patch fixes following minor cleanup:
    - Order the include files in alphabetical order.
    - Fix description of state_off in extcon_gpio.h
    - Add a descrition for check_on_resume in extcon_gpio.h

    Signed-off-by: George Cherian
    [Modify the name/description of patch to keep standary codiyg style by Chanwoo Choi]
    Signed-off-by: Chanwoo Choi

    George Cherian
     
  • This patch move sm5502.h header file from 'include/linux/extcon' to
    'driver/extcon' because sm5502.h is used for driver/extcon/extcon-sm5502.c.
    and remove duplicate license description.

    Signed-off-by: Chanwoo Choi

    Chanwoo Choi
     

23 Jul, 2014

2 commits


19 Mar, 2014

1 commit


09 Jan, 2014

1 commit


27 Sep, 2013

2 commits


05 Aug, 2013

1 commit


14 Feb, 2013

1 commit


06 Sep, 2012

1 commit

  • External connector devices that decides connection information based on
    ADC values may use adc-jack device driver. The user simply needs to
    provide a table of adc range and connection states. Then, extcon
    framework will automatically notify others.

    Changes in V1:
    added Lars-Peter Clausen suggested changes:
    Using macros to get rid of boiler plate code such as devm_kzalloc
    and module_platform_driver.Other changes suggested are related to
    coding guidelines.

    Changes in V2:
    Removed some unnecessary checks and changed the way we are un-regitering
    extcon and freeing the irq while removing.

    Changes in V3:
    Renamed the files to comply with extcon naming.

    Changes in V4:
    Added the cancel_work_sync during removing of driver.

    Changes in V5:
    Added the dependency of IIO in Kconfig.

    Changes in V6:
    Some nitpicks related to naming.

    Changes in this version:
    V6 patch version patch broke the build:
    ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!

    Fixed it in this version.

    Acked-by: Jonathan Cameron
    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: anish kumar
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    anish kumar
     

17 Aug, 2012

2 commits

  • This reverts commit 980d7929816236476967218645c30acc022042eb as it
    breaks the build with the error:
    ERROR: "extcon_cable_name" [drivers/extcon/extcon-adc-jack.ko] undefined!

    Cc: Lars-Peter Clausen
    Cc: anish kumar
    Cc: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • External connector devices that decides connection information based on
    ADC values may use adc-jack device driver. The user simply needs to
    provide a table of adc range and connection states. Then, extcon
    framework will automatically notify others.

    Changes in V1:
    added Lars-Peter Clausen suggested changes:
    Using macros to get rid of boiler plate code such as devm_kzalloc
    and module_platform_driver.Other changes suggested are related to
    coding guidelines.

    Changes in V2:
    Removed some unnecessary checks and changed the way we are un-regitering
    extcon and freeing the irq while removing.

    Changes in V3:
    Renamed the files to comply with extcon naming.

    Changes in V4:
    Added the cancel_work_sync during removing of driver.

    Changes in V5:
    Added the dependency of IIO in Kconfig.

    Changes in V6:
    Some nitpicks related to naming.

    Reviewed-by: Lars-Peter Clausen
    Signed-off-by: anish kumar
    Signed-off-by: MyungJoo Ham
    Signed-off-by: Greg Kroah-Hartman

    anish kumar
     

18 Jul, 2012

1 commit


21 Apr, 2012

1 commit

  • The generic GPIO extcon driver (an external connector device based on
    GPIO control) and imported from Android kernel.

    switch: switch class and GPIO drivers. (splitted)
    Author: Mike Lockwood

    switch: gpio: Don't call request_irq with interrupts disabled
    Author: Arve Hjønnevåg

    switch_gpio: Add missing #include
    Author: Mike Lockwood

    Signed-off-by: MyungJoo Ham
    Signed-off-by: Kyungmin Park
    Reviewed-by: Mark Brown

    --
    Changed from v7:
    - Style updates mentioned by Stephen Boyd and Mark Brown
    Changed from v5:
    - Splitted at v5 from the main extcon patch.
    - Added debounce time for irq handlers.
    - Use request_any_context_irq instead of request_irq
    - User needs to specify irq flags for GPIO interrupts (was fixed to
    IRQF_TRIGGER_LOW before)
    - Use module_platform_driver().
    Signed-off-by: Greg Kroah-Hartman

    MyungJoo Ham