LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Corentin Chary <corentin.chary@gmail.com>
To: platform-driver-x86@vger.kernel.org
Cc: linux acpi <linux-acpi@vger.kernel.org>,
LKML <linux-kernel@vger.kernel.org>,
Matthew Garrett <mjg@redhat.com>,
Dmitry Torokhov <dmitry.torokhov@gmail.com>
Subject: What's part of the ABI (breaking eeepc-wmi)
Date: Tue, 8 Feb 2011 08:51:27 +0000 [thread overview]
Message-ID: <AANLkTim5kG-pZRpj+6ckOvuk5ZSJ_O7zbwBnC4JNQPtS@mail.gmail.com> (raw)
Hi,
I recently discovered that new Asus notebooks (eg: not Eeepc) are now
shipped with an ACPI WMI device instead of the old ACPI Atkd device.
Most of this device is similar to the Eeepc ACPI WMI device, except
for keymap and event GUID.
I could add support for these notebooks in eeepc-wmi, but that seems
really weird.
A first solution is to rename eeepc-wmi asus-wmi, and create an alias
to make eeepc-wmi work. Then this driver would handle asus-wmi and
eeepc-wmi platform drivers (it could also be splitted in 3
files/modules, common/notebook/eeepc).
But then, is it important to keep these strings ?
- hotplug string ("eeepc-wifi")
- rfkill names ("eeepc-xxxxx")
- led names ("eeepc::xxxxxx")
- input strings (.phys and .name)
If these strings should really be keeped for backward compatibility, I
was thinking of something like that:
----
struct module;
struct key_entry;
static struct asus_wmi_driver {
const char *name;
struct module *owner;
const struct key_entry *keymap;
int (*probe) (struct asus_wmi *asus);
int (*quirks) (struct asus_wmi *asus);
struct {
const char *input_name;
const char *input_phys;
const char *led_touchpad;
const char *hotplug_wlan;
const char *rfkill_wlan;
const char *rfkill_bluetooth;
const char *rfkill_wimax;
const char *rfkill_wwan3g;
} strings;
struct asus_wmi *device;
};
int asus_wmi_register_driver(struct asus_wmi_driver *driver);
void asus_wmi_unregister_driver(struct asus_wmi_driver *driver);
----
Any thoughts on that ?
--
Corentin Chary
http://xf.iksaif.net
next reply other threads:[~2011-02-08 8:51 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-08 8:51 Corentin Chary [this message]
2011-02-08 14:53 ` Matthew Garrett
2011-02-08 15:17 ` Corentin Chary
2011-02-08 17:11 ` Dmitry Torokhov
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=AANLkTim5kG-pZRpj+6ckOvuk5ZSJ_O7zbwBnC4JNQPtS@mail.gmail.com \
--to=corentin.chary@gmail.com \
--cc=dmitry.torokhov@gmail.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mjg@redhat.com \
--cc=platform-driver-x86@vger.kernel.org \
--subject='Re: What'\''s part of the ABI (breaking eeepc-wmi)' \
/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
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).