mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 12:58:12 -04:00
i2c: i2c-msm-geni: Add support to make I2C driver GKI compliant
Add support in I2C driver to make it a DLKM. Change-Id: Ibd82b554c88efa7add8e4dcfd0a9feb609f60fba Signed-off-by: Vipin Deep Kaur <vkaur@codeaurora.org>
This commit is contained in:
parent
11b286fb73
commit
6a89bcb957
2 changed files with 13 additions and 2 deletions
|
|
@ -896,6 +896,7 @@ config I2C_MSM_GENI
|
|||
tristate "Qualcomm Technologies Inc.'s GENI based I2C controller"
|
||||
depends on ARCH_QCOM || COMPILE_TEST
|
||||
depends on MSM_GENI_SE
|
||||
default n
|
||||
help
|
||||
This driver supports GENI serial engine based I2C controller in
|
||||
master mode on the Qualcomm Technologies Inc.'s SoCs. If you say
|
||||
|
|
|
|||
|
|
@ -977,7 +977,7 @@ static int geni_i2c_resume_noirq(struct device *device)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
#if IS_ENABLED(CONFIG_PM)
|
||||
static int geni_i2c_runtime_suspend(struct device *dev)
|
||||
{
|
||||
struct geni_i2c_dev *gi2c = dev_get_drvdata(dev);
|
||||
|
|
@ -1108,7 +1108,17 @@ static struct platform_driver geni_i2c_driver = {
|
|||
},
|
||||
};
|
||||
|
||||
module_platform_driver(geni_i2c_driver);
|
||||
static int __init i2c_dev_init(void)
|
||||
{
|
||||
return platform_driver_register(&geni_i2c_driver);
|
||||
}
|
||||
|
||||
static void __exit i2c_dev_exit(void)
|
||||
{
|
||||
platform_driver_unregister(&geni_i2c_driver);
|
||||
}
|
||||
|
||||
module_init(i2c_dev_init);
|
||||
module_exit(i2c_dev_exit);
|
||||
MODULE_LICENSE("GPL v2");
|
||||
MODULE_ALIAS("platform:i2c_geni");
|
||||
|
|
|
|||
Loading…
Reference in a new issue