iio: accel: kxcjk-1013: new ACPI id and
v2 cover iio: accel: kxcjk-1013: new ACPI id and
Hi,
compared to the v1 I fixed the typo (s/DSTD/DSDT/) in patch 1 and dropped the renaming of is_smo8500_device.
Thanks,
Antonio
Antonio Ospite (2):
iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id
iio: accel: kxcjk-1013: add some blank lines for readability
drivers/iio/accel/kxcjk-1013.c | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 6 lines
Antonio Ospite http://ao2.it A: Because it messes up the order in which people normally read text. See http://en.wikipedia.org/wiki/Posting_style Q: Why is top-posting such a bad thing?
PATCH v2 1/2 iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id
This id has been seen in the DSDT of the Teclast X98 Air 3G tablet based on Intel Bay Trail.
--- drivers/iio/accel/kxcjk-1013.c | 1 + 1 file changed, 1 insertion(+)
drivers/iio/accel/kxcjk-1013.c +1 -0
@@ -1418,6 +1418,7 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {static const struct acpi_device_id kx_acpi_match[] = { {"KXCJ1013" ,KXCJK1013 }, {"KXCJ1008" ,KXCJ91008 }, + {"KXCJ9000" ,KXCJ91008 }, {"KXTJ1009" ,KXTJ21009 }, {"SMO8500" ,KXCJ91008 }, { },
Signature · 1 line
2.1.4
Re: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id
Quoted 7 lines · Antonio Ospite
This id has been seen in the DSDT of the Teclast X98 Air 3G tablet based on Intel Bay Trail.
Signed-off-by Antonio Ospite <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Bastien Nocera <[email protected]>
Looks good to me.
Quoted 19 lines
--- drivers/iio/accel/kxcjk-1013.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/accel/kxcjk-1013.c +1
-1@@ -1418,6 +1418,7 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {static const struct acpi_device_id kx_acpi_match[] = { {"KXCJ1013" ,KXCJK1013 }, {"KXCJ1008" ,KXCJ91008 }, + {"KXCJ9000" ,KXCJ91008 }, {"KXTJ1009" ,KXTJ21009 }, {"SMO8500" ,KXCJ91008 }, { }, --2.1.4
Jonathan Cameron
maintainerRe: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id
Quoted 4 lines · Daniel Baluta
Quoted 3 lines · Antonio Ospite
This id has been seen in the DSDT of the Teclast X98 Air 3G tablet based on Intel Bay Trail.
Quoted 8 lines
Quoted 4 lines
Signed-off-by Antonio Ospite <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Bastien Nocera <[email protected]>Looks good to me.
Reviewed-by Daniel Baluta <[email protected]>
Added to the patch.
Quoted 25 lines
Quoted 18 lines
--- drivers/iio/accel/kxcjk-1013.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/accel/kxcjk-1013.c +1
-1@@ -1418,6 +1418,7 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {static const struct acpi_device_id kx_acpi_match[] = { {"KXCJ1013" ,KXCJK1013 }, {"KXCJ1008" ,KXCJ91008 }, + {"KXCJ9000" ,KXCJ91008 }, {"KXTJ1009" ,KXTJ21009 }, {"SMO8500" ,KXCJ91008 }, { }, --Quoted 2 lines
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Jonathan Cameron
maintainerRe: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id
In reply to Antonio OspiteQuoted 7 lines · Antonio Ospite
This id has been seen in the DSDT of the Teclast X98 Air 3G tablet based on Intel Bay Trail.
Signed-off-by Antonio Ospite <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Bastien Nocera <[email protected]>
Hmm. I'm not entirely sure what he convention on this is. It's not a regression fix as this never worked, so not subject to a quick send on for this merge cycle. It is however a new ID which is acceptable stable material.
Anyhow, the IIO convention from now on (unless someone points me at a more general doc that suggests something else) is to take these for the next merge window, but mark them for stable so they propagate down to the long term stable kernels.
So applied to the togreg branch of iio.git - initially pushed out as testing when I'm somewhere convenient with reliable internet access.
Jonathan
Quoted 17 lines
--- drivers/iio/accel/kxcjk-1013.c | 1 + 1 file changed, 1 insertion(+)drivers/iio/accel/kxcjk-1013.c +1
-0@@ -1418,6 +1418,7 @@ static const struct dev_pm_ops kxcjk1013_pm_ops = {static const struct acpi_device_id kx_acpi_match[] = { {"KXCJ1013" ,KXCJK1013 }, {"KXCJ1008" ,KXCJ91008 }, + {"KXCJ9000" ,KXCJ91008 }, {"KXTJ1009" ,KXTJ21009 }, {"SMO8500" ,KXCJ91008 }, { },
PATCH v2 2/2 iio: accel: kxcjk-1013: add some blank lines for readability
In reply to Antonio OspiteSome extra blank lines between if checks don't hurt and improve readability.
--- drivers/iio/accel/kxcjk-1013.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/iio/accel/kxcjk-1013.c +3 -0
@@ -1147,8 +1147,10 @@ static const char *kxcjk1013_match_acpi_device(struct device *dev, id =acpi_match_device (dev->driver->acpi_match_table, dev);if (!id)return NULL ; +if (strcmp (id->id,"SMO8500" ) ==0 ) *is_smo8500_device = true; + *chipset = (enum kx_chipset )id->driver_data;return dev_name (dev);
@@ -1163,6 +1165,7 @@ static int kxcjk1013_gpio_probe(struct i2c_client *client,if (!client)return -EINVAL ; +if (data->is_smo8500_device)return -ENOTSUPP ;
Signature · 1 line
2.1.4
Re: [PATCHv2 2/2] iio: accel: kxcjk-1013: add some blank lines for readability
Quoted 8 lines · Antonio Ospite
Some extra blank lines between if checks don't hurt and improve readability.
Signed-off-by Antonio Ospite <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Bastien Nocera <[email protected]>---
Looks nice :).
Quoted 29 lines
drivers/iio/accel/kxcjk-1013.c | 3 +++ 1 file changed, 3 insertions(+)drivers/iio/accel/kxcjk-1013.c +3
-1@@ -1147,8 +1147,10 @@ static const char *kxcjk1013_match_acpi_device(struct device *dev, id =acpi_match_device (dev->driver->acpi_match_table, dev);if (!id)return NULL ; +if (strcmp (id->id,"SMO8500" ) ==0 ) *is_smo8500_device = true; + *chipset = (enum kx_chipset )id->driver_data;return dev_name (dev);@@ -1163,6 +1165,7 @@ static int kxcjk1013_gpio_probe(struct i2c_client *client,if (!client)return -EINVAL ; +if (data->is_smo8500_device)return -ENOTSUPP ; --2.1.4
Jonathan Cameron
maintainerRe: [PATCHv2 2/2] iio: accel: kxcjk-1013: add some blank lines for readability
Quoted 10 lines · Daniel Baluta
Quoted 8 lines · Antonio Ospite
Some extra blank lines between if checks don't hurt and improve readability.
Signed-off-by Antonio Ospite <[email protected]>Cc Jonathan Cameron <[email protected]>Cc Bastien Nocera <[email protected]>---
Quoted 3 lines
Looks nice :).
Reviewed-by Daniel Baluta <[email protected]>
added to the patch.
Quoted 35 lines
Quoted 28 lines
drivers/iio/accel/kxcjk-1013.c | 3 +++ 1 file changed, 3 insertions(+)drivers/iio/accel/kxcjk-1013.c +3
-1@@ -1147,8 +1147,10 @@ static const char *kxcjk1013_match_acpi_device(struct device *dev, id =acpi_match_device (dev->driver->acpi_match_table, dev);if (!id)return NULL ; +if (strcmp (id->id,"SMO8500" ) ==0 ) *is_smo8500_device = true; + *chipset = (enum kx_chipset )id->driver_data;return dev_name (dev);@@ -1163,6 +1165,7 @@ static int kxcjk1013_gpio_probe(struct i2c_client *client,if (!client)return -EINVAL ; +if (data->is_smo8500_device)return -ENOTSUPP ; --Quoted 2 lines
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html