From: Hans de Goede <hdegoede@redhat.com>
To: Jiri Kosina <jikos@kernel.org>,
Benjamin Tissoires <benjamin.tissoires@redhat.com>,
Douglas Anderson <dianders@chromium.org>
Cc: Hans de Goede <hdegoede@redhat.com>, linux-input@vger.kernel.org
Subject: [PATCH 0/6] HID: i2c-hid-of: Allow using i2c-hid-of on non OF platforms + remove specialized drivers
Date: Sun, 9 Apr 2023 16:42:37 +0200 [thread overview]
Message-ID: <20230409144243.25360-1-hdegoede@redhat.com> (raw)
Hi All,
This series consist of 2 parts:
1. Patches 1-3. Allow using i2c-hid-of on non OF platforms to allow I2C-HID
devices which are not enumerated by ACPI to work on ACPI platforms
(by manual i2c_client instantiation using i2c_client_id matching).
2. Patches 4-6. Remove the special i2c-hid-of-elan and i2c-hid-of-goodix
driver, folding the functionality into the generic i2c-hid-of driver.
Since 1. requires adding reset-gpio support to i2c-hid-of there was
very little difference left between the generic i2c-hid-of code and
the specialized drivers. So I decided to merge them into the generic
driver instead of having duplicate code.
Note patches 4-6 have not been actually tested with an "elan,ekth6915"
touchscreen nor with a "goodix,gt7375p" touchscreen.
Douglas, can you perhaps test this patch-set with an "elan,ekth6915"
touchscreen and with a "goodix,gt7375p" touchscreen ?
Regards,
Hans
Hans de Goede (6):
HID: i2c-hid-of: Consistenly use dev local variable in probe()
HID: i2c-hid-of: Allow using i2c-hid-of on non OF platforms
HID: i2c-hid-of: Add reset GPIO support to i2c-hid-of
HID: i2c-hid-of: Add chip_data struct
HID: i2c-hid-of: Consolidate Elan support into generic i2c-hid-of
driver
HID: i2c-hid-of: Consolidate Goodix support into generic i2c-hid-of
driver
drivers/hid/i2c-hid/Kconfig | 36 +------
drivers/hid/i2c-hid/Makefile | 2 -
drivers/hid/i2c-hid/i2c-hid-of-elan.c | 129 ------------------------
drivers/hid/i2c-hid/i2c-hid-of-goodix.c | 125 -----------------------
drivers/hid/i2c-hid/i2c-hid-of.c | 124 +++++++++++++++++++----
5 files changed, 106 insertions(+), 310 deletions(-)
delete mode 100644 drivers/hid/i2c-hid/i2c-hid-of-elan.c
delete mode 100644 drivers/hid/i2c-hid/i2c-hid-of-goodix.c
--
2.39.1
next reply other threads:[~2023-04-09 14:43 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-09 14:42 Hans de Goede [this message]
2023-04-09 14:42 ` [PATCH 1/6] HID: i2c-hid-of: Consistenly use dev local variable in probe() Hans de Goede
2023-04-09 14:42 ` [PATCH 2/6] HID: i2c-hid-of: Allow using i2c-hid-of on non OF platforms Hans de Goede
2023-04-09 14:42 ` [PATCH 3/6] HID: i2c-hid-of: Add reset GPIO support to i2c-hid-of Hans de Goede
2023-04-09 14:42 ` [PATCH 4/6] HID: i2c-hid-of: Add chip_data struct Hans de Goede
2023-04-09 14:42 ` [PATCH 5/6] HID: i2c-hid-of: Consolidate Elan support into generic i2c-hid-of driver Hans de Goede
2023-04-09 14:42 ` [PATCH 6/6] HID: i2c-hid-of: Consolidate Goodix " Hans de Goede
2023-04-11 9:02 ` [PATCH 0/6] HID: i2c-hid-of: Allow using i2c-hid-of on non OF platforms + remove specialized drivers Benjamin Tissoires
2023-04-11 10:18 ` Hans de Goede
2023-04-11 12:50 ` Benjamin Tissoires
2023-04-11 16:00 ` Hans de Goede
2023-04-11 16:56 ` Benjamin Tissoires
2023-04-11 17:28 ` Hans de Goede
2023-04-12 17:18 ` Benjamin Tissoires
2023-04-12 18:57 ` Doug Anderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230409144243.25360-1-hdegoede@redhat.com \
--to=hdegoede@redhat.com \
--cc=benjamin.tissoires@redhat.com \
--cc=dianders@chromium.org \
--cc=jikos@kernel.org \
--cc=linux-input@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).