Commit 369cc90a authored by Petre Rodan's avatar Petre Rodan Committed by Jonathan Cameron

iio: pressure: mprls0025pa whitespace cleanup

Fix indentation and whitespace in code that will not get refactored.

Make URL inside comment copy-paste friendly.
Co-developed-by: default avatarAndreas Klinger <ak@it-klinger.de>
Signed-off-by: default avatarAndreas Klinger <ak@it-klinger.de>
Signed-off-by: default avatarPetre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20231229092445.30180-8-petre.rodan@subdimension.roSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent b586b40e
...@@ -5,10 +5,7 @@ ...@@ -5,10 +5,7 @@
* Copyright (c) Andreas Klinger <ak@it-klinger.de> * Copyright (c) Andreas Klinger <ak@it-klinger.de>
* *
* Data sheet: * Data sheet:
* https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/ * https://prod-edam.honeywell.com/content/dam/honeywell-edam/sps/siot/en-us/products/sensors/pressure-sensors/board-mount-pressure-sensors/micropressure-mpr-series/documents/sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf
* products/sensors/pressure-sensors/board-mount-pressure-sensors/
* micropressure-mpr-series/documents/
* sps-siot-mpr-series-datasheet-32332628-ciid-172626.pdf
* *
* 7-bit I2C default slave address: 0x18 * 7-bit I2C default slave address: 0x18
*/ */
...@@ -84,9 +81,9 @@ struct mpr_func_spec { ...@@ -84,9 +81,9 @@ struct mpr_func_spec {
}; };
static const struct mpr_func_spec mpr_func_spec[] = { static const struct mpr_func_spec mpr_func_spec[] = {
[MPR_FUNCTION_A] = {.output_min = 1677722, .output_max = 15099494}, [MPR_FUNCTION_A] = { .output_min = 1677722, .output_max = 15099494 },
[MPR_FUNCTION_B] = {.output_min = 419430, .output_max = 3774874}, [MPR_FUNCTION_B] = { .output_min = 419430, .output_max = 3774874 },
[MPR_FUNCTION_C] = {.output_min = 3355443, .output_max = 13421773}, [MPR_FUNCTION_C] = { .output_min = 3355443, .output_max = 13421773 },
}; };
struct mpr_chan { struct mpr_chan {
...@@ -391,7 +388,9 @@ static int mpr_probe(struct i2c_client *client) ...@@ -391,7 +388,9 @@ static int mpr_probe(struct i2c_client *client)
if (data->irq > 0) { if (data->irq > 0) {
ret = devm_request_irq(dev, data->irq, mpr_eoc_handler, ret = devm_request_irq(dev, data->irq, mpr_eoc_handler,
IRQF_TRIGGER_RISING, client->name, data); IRQF_TRIGGER_RISING,
client->name,
data);
if (ret) if (ret)
return dev_err_probe(dev, ret, return dev_err_probe(dev, ret,
"request irq %d failed\n", data->irq); "request irq %d failed\n", data->irq);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment