From: "Eric Fargas Espín" <efargaspro@gmail.com>
To: linux-input@vger.kernel.org
Subject: Fwd: adxl345 patches
Date: Thu, 25 Jun 2015 00:29:10 +0200 [thread overview]
Message-ID: <CALSxS=gvAU+RiZkrBi0xU5_akryw7BUWA6PERxGL5ho6Dcij2A@mail.gmail.com> (raw)
In-Reply-To: <CALSxS=hDUMaYXvxCE+hh9+ZXKRpsNzAo9hR1-ntjw_FW7nVuEQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 77 bytes --]
This patches add module alias, usefull to load driver with DTS on beaglebone
[-- Attachment #2: adxl34x_c.patch --]
[-- Type: application/octet-stream, Size: 363 bytes --]
--- a/drivers/input/misc/adxl34x.c 2013-05-11 22:57:46.000000000 +0200
+++ b/drivers/input/misc/adxl34x.c 2015-05-14 15:25:49.656250774 +0200
@@ -913,3 +913,4 @@
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer Driver");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("misc:adxl34x");
[-- Attachment #3: adxl34x_i2c_c.patch --]
[-- Type: application/octet-stream, Size: 378 bytes --]
--- a/drivers/input/misc/adxl34x-i2c.c 2013-05-11 22:57:46.000000000 +0200
+++ b/drivers/input/misc/adxl34x-i2c.c 2015-05-14 15:25:49.658203899 +0200
@@ -153,3 +153,4 @@
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer I2C Bus Driver");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("i2c:adxl34x");
[-- Attachment #4: adxl34x_spi_c.patch --]
[-- Type: application/octet-stream, Size: 548 bytes --]
--- a/drivers/input/misc/adxl34x-spi.c 2013-05-11 22:57:46.000000000 +0200
+++ b/drivers/input/misc/adxl34x-spi.c 2015-06-20 01:43:13.472273021 +0200
@@ -131,6 +131,16 @@
module_spi_driver(adxl34x_driver);
+static const struct spi_device_id adxl34x_id[] = {
+ { "adxl34x", 0 },
+ { }
+};
+
+MODULE_DEVICE_TABLE(spi, adxl34x_id);
+
MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>");
MODULE_DESCRIPTION("ADXL345/346 Three-Axis Digital Accelerometer SPI Bus Driver");
MODULE_LICENSE("GPL");
+MODULE_ALIAS("spi:adxl34x");
+
+
next parent reply other threads:[~2015-06-24 22:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALSxS=hDUMaYXvxCE+hh9+ZXKRpsNzAo9hR1-ntjw_FW7nVuEQ@mail.gmail.com>
2015-06-24 22:29 ` Eric Fargas Espín [this message]
2015-06-24 22:38 ` Fwd: adxl345 patches 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='CALSxS=gvAU+RiZkrBi0xU5_akryw7BUWA6PERxGL5ho6Dcij2A@mail.gmail.com' \
--to=efargaspro@gmail.com \
--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).