* Fwd: adxl345 patches
[not found] <CALSxS=hDUMaYXvxCE+hh9+ZXKRpsNzAo9hR1-ntjw_FW7nVuEQ@mail.gmail.com>
@ 2015-06-24 22:29 ` Eric Fargas Espín
2015-06-24 22:38 ` Dmitry Torokhov
0 siblings, 1 reply; 2+ messages in thread
From: Eric Fargas Espín @ 2015-06-24 22:29 UTC (permalink / raw)
To: linux-input
[-- 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");
+
+
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: adxl345 patches
2015-06-24 22:29 ` Fwd: adxl345 patches Eric Fargas Espín
@ 2015-06-24 22:38 ` Dmitry Torokhov
0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2015-06-24 22:38 UTC (permalink / raw)
To: Eric Fargas Espín; +Cc: linux-input
On Thu, Jun 25, 2015 at 12:29:10AM +0200, Eric Fargas Espín wrote:
> This patches add module alias, usefull to load driver with DTS on beaglebone
Documentation/SubmittingPatches please.
--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-24 22:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CALSxS=hDUMaYXvxCE+hh9+ZXKRpsNzAo9hR1-ntjw_FW7nVuEQ@mail.gmail.com>
2015-06-24 22:29 ` Fwd: adxl345 patches Eric Fargas Espín
2015-06-24 22:38 ` Dmitry Torokhov
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).