forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch splits the cros_ec_devs module in two parts with a cros_ec_dev module responsible for handling MFD devices registration and a cros_ec_ctl module responsible for handling the various user-space interfaces. For consistency purpose, the driver name for the cros_ec_dev module is now cros-ec-dev instead of cros-ec-ctl. In the next commit, the new cros_ec_dev module will be moved to the MFD subtree so mfd_add_devices() calls are not done from outside MFD. Signed-off-by: Thierry Escande <[email protected]> Reviewed-by: Gwendal Grignou <[email protected]> Tested-by: Guenter Roeck <[email protected]> Signed-off-by: Lee Jones <[email protected]>
- Loading branch information
Thierry Escande
authored and
Lee Jones
committed
Dec 15, 2017
1 parent
4fbd8d1
commit ea01a31
Showing
8 changed files
with
25 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,8 @@ | |
#include "cros_ec_debugfs.h" | ||
#include "cros_ec_dev.h" | ||
|
||
#define DRV_NAME "cros-ec-dev" | ||
|
||
/* Device variables */ | ||
#define CROS_MAX_DEV 128 | ||
static int ec_major; | ||
|
@@ -461,7 +463,7 @@ static int ec_device_remove(struct platform_device *pdev) | |
} | ||
|
||
static const struct platform_device_id cros_ec_id[] = { | ||
{ "cros-ec-ctl", 0 }, | ||
{ DRV_NAME, 0 }, | ||
{ /* sentinel */ }, | ||
}; | ||
MODULE_DEVICE_TABLE(platform, cros_ec_id); | ||
|
@@ -493,7 +495,7 @@ static const struct dev_pm_ops cros_ec_dev_pm_ops = { | |
|
||
static struct platform_driver cros_ec_dev_driver = { | ||
.driver = { | ||
.name = "cros-ec-ctl", | ||
.name = DRV_NAME, | ||
.pm = &cros_ec_dev_pm_ops, | ||
}, | ||
.probe = ec_device_probe, | ||
|
@@ -544,6 +546,7 @@ static void __exit cros_ec_dev_exit(void) | |
module_init(cros_ec_dev_init); | ||
module_exit(cros_ec_dev_exit); | ||
|
||
MODULE_ALIAS("platform:" DRV_NAME); | ||
MODULE_AUTHOR("Bill Richardson <[email protected]>"); | ||
MODULE_DESCRIPTION("Userspace interface to the Chrome OS Embedded Controller"); | ||
MODULE_VERSION("1.0"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters