Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1169718 > unrolled thread

[RESEND PATCH 0/3] platform/chrome: Changes for cros_ec_lpc and cros_ec_dev

Started byJavier Martinez Canillas <javier.martinez@collabora.co.uk>
First post2015-06-22 08:30 +0200
Last post2015-06-22 08:30 +0200
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH 0/3] platform/chrome: Changes for cros_ec_lpc and cros_ec_dev Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-22 08:30 +0200
    [RESEND PATCH 3/3] platform/chrome: cros_ec_dev - Add a platform device ID table Javier Martinez Canillas <javier.martinez@collabora.co.uk> - 2015-06-22 08:30 +0200

#1169718 — [RESEND PATCH 0/3] platform/chrome: Changes for cros_ec_lpc and cros_ec_dev

FromJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Date2015-06-22 08:30 +0200
Subject[RESEND PATCH 0/3] platform/chrome: Changes for cros_ec_lpc and cros_ec_dev
Message-ID<pE3p0-3ZS-7@gated-at.bofh.it>
Hello Olof,

This series contain a fix and a cleanup for the cros_ec_lpc driver and
a small fix for cros_ec_dev driver. Is a resend of a patch-set posted
posted more than one month ago [0] but most patches were already posted
as a part of a different series [1] that was split out so have been in
the list for months.

Can you please review them? The patches are really trivial.

Javier Martinez Canillas (3):
  platform/chrome: cros_ec_lpc - Use existing function to check EC
    result
  platform/chrome: cros_ec_lpc - Add support for Google Pixel 2
  platform/chrome: cros_ec_dev - Add a platform device ID table

 drivers/platform/chrome/cros_ec_dev.c |  6 ++++++
 drivers/platform/chrome/cros_ec_lpc.c | 21 +++++++++------------
 2 files changed, 15 insertions(+), 12 deletions(-)

Best regards,
Javier

[0]: https://lkml.org/lkml/2015/5/20/184
[1]: https://lkml.org/lkml/2015/5/9/73

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [next] | [standalone]


#1169720 — [RESEND PATCH 3/3] platform/chrome: cros_ec_dev - Add a platform device ID table

FromJavier Martinez Canillas <javier.martinez@collabora.co.uk>
Date2015-06-22 08:30 +0200
Subject[RESEND PATCH 3/3] platform/chrome: cros_ec_dev - Add a platform device ID table
Message-ID<pE3p1-3ZS-33@gated-at.bofh.it>
In reply to#1169718
If the cros_ec_dev driver is built as a module, modalias information is
not filled so the module is not autoloaded. Add a platform device table
and use the MODULE_DEVICE_TABLE() macro to export that information in
the module so user-space can match the modalias uevent and autoload it.

Signed-off-by: Javier Martinez Canillas <javier.martinez@collabora.co.uk>
---
 drivers/platform/chrome/cros_ec_dev.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/platform/chrome/cros_ec_dev.c b/drivers/platform/chrome/cros_ec_dev.c
index 6090d0b2826f..4232c8136939 100644
--- a/drivers/platform/chrome/cros_ec_dev.c
+++ b/drivers/platform/chrome/cros_ec_dev.c
@@ -216,6 +216,12 @@ static int ec_device_remove(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct platform_device_id cros_ec_id[] = {
+	{ "cros-ec-ctl", 0 },
+	{ /* sentinel */ },
+};
+MODULE_DEVICE_TABLE(platform, cros_ec_id);
+
 static struct platform_driver cros_ec_dev_driver = {
 	.driver = {
 		.name = "cros-ec-ctl",
-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
Please read the FAQ at  http://www.tux.org/lkml/

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web