Skip to contentSkip to conversation

iio: accel: kxcjk-1013: new ACPI id and

PATCH In review Antonio Ospite 3 participants 8 messages May 4, 2015 IIO

lore
Share & tools
lore
#1 lore raw

PATCH v2 1/2 iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id

In reply to Antonio Ospite

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
index 51da369..5b7a860 100644
@@ -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
#5 lore raw

PATCH v2 2/2 iio: accel: kxcjk-1013: add some blank lines for readability

In reply to Antonio Ospite

Some 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
index 5b7a860..937bfc2 100644
@@ -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
#0 lore raw

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?
Reviewed-by on v2 1/2
#2 lore raw

Re: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id

In reply to Antonio Ospite
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.

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
index 51da369..5b7a860 100644
@@ -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

Reviewed-by on v2 2/2
#6 lore raw

Re: [PATCHv2 2/2] iio: accel: kxcjk-1013: add some blank lines for readability

In reply to Antonio Ospite
Quoted 8 lines · Antonio Ospite

Some extra blank lines between if checks don't hurt and improve readability.

---

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
index 5b7a860..937bfc2 100644
@@ -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

maintainer
#4 lore raw

Re: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id

In reply to Antonio Ospite
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.

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
index 51da369..5b7a860 100644
@@ -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},
 	{ },
maintainer
#3 lore raw

Re: [PATCHv2 1/2] iio: accel: kxcjk-1013: add the "KXCJ9000" ACPI id

In reply to Daniel Baluta
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

Looks good to me.

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
index 51da369..5b7a860 100644
@@ -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

maintainer
#7 lore raw

Re: [PATCHv2 2/2] iio: accel: kxcjk-1013: add some blank lines for readability

In reply to Daniel Baluta
Quoted 10 lines · Daniel Baluta
Quoted 8 lines · Antonio Ospite

Some extra blank lines between if checks don't hurt and improve readability.

---

Quoted 3 lines

Looks nice :).

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
index 5b7a860..937bfc2 100644
@@ -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