Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1742133
| From | Sebastian Reichel <sebastian.reichel@collabora.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] extcon: Split out extcon header file for consumer and provider device |
| Date | 2017-09-29 15:50 +0200 |
| Message-ID | <uv3PY-6Of-17@gated-at.bofh.it> (permalink) |
| References | <uuR2p-7kY-3@gated-at.bofh.it> <uuR2p-7kY-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
Hi,
On Fri, Sep 29, 2017 at 09:01:45AM +0900, Chanwoo Choi wrote:
> The extcon has two type of extcon devices as following.
> - 'extcon provider deivce' adds new extcon device and detect the
> state/properties of external connector. Also, it notifies the
> state/properties to the extcon consumer device.
> - 'extcon consumer device' gets the change state/properties
> from extcon provider device.
> Prior to that, include/linux/extcon.h contains all exported API for
> both provider and consumer device driver. To clarify the meaning of
> header file and to remove the wrong use-case on consumer device,
> this patch separates into extcon.h and extcon-provider.h.
>
> [Description for include/linux/{extcon.h|extcon-provider.h}]
> - extcon.h includes the extcon API and data structure for extcon consumer
> device driver. This header file contains the following APIs:
> : Register/unregister the notifier to catch the change of extcon device
> : Get the extcon device instance
> : Get the extcon device name
> : Get the state of each external connector
> : Get the property value of each external connector
> : Get the property capability of each external connector
>
> - extcon-provider.h includes the extcon API and data structure for extcon
> provider device driver. This header file contains the following APIs:
> : Include 'include/linux/extcon.h'
> : Allocate the memory for extcon device instance
> : Register/unregister extcon device
> : Set the state of each external connector
> : Set the property value of each external connector
> : Set the property capability of each external connector
>
[...]
> drivers/power/supply/qcom_smbb.c | 2 +-
[...]
Acked-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk>
-- Sebastian
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] extcon: Split out extcon header file for consumer and provider device Chanwoo Choi <cw00.choi@samsung.com> - 2017-09-29 02:10 +0200
RE: [PATCH] extcon: Split out extcon header file for consumer and provider device Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> - 2017-09-29 04:10 +0200
Re: [PATCH] extcon: Split out extcon header file for consumer and provider device Chanwoo Choi <cw00.choi@samsung.com> - 2017-09-29 07:00 +0200
Re: [PATCH] extcon: Split out extcon header file for consumer and provider device Sebastian Reichel <sebastian.reichel@collabora.co.uk> - 2017-09-29 15:50 +0200
csiph-web