diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2021-10-15 11:14:37 +0300 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-10-20 19:28:25 +0300 |
commit | 7c605802f33176d872ffb6a3830ba4d88d9f21f6 (patch) | |
tree | b0a5842c2c75e9eeb3efdbdc8306d4fd9461b7c8 /include/linux/mfd | |
parent | 2bb9e6a3d4e86453cba0631ab603bf54bb28f6da (diff) | |
download | linux-7c605802f33176d872ffb6a3830ba4d88d9f21f6.tar.xz |
mfd: ti_am335x_tscadc: Drop useless variables from the driver structure
Keeping the count of tsc_cells and adc_cells is completely redundant, we
can derive this information from other variables. Plus, these variables
are not used anywhere else now. Let's get rid of them.
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20211015081506.933180-20-miquel.raynal@bootlin.com
Diffstat (limited to 'include/linux/mfd')
-rw-r--r-- | include/linux/mfd/ti_am335x_tscadc.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/mfd/ti_am335x_tscadc.h b/include/linux/mfd/ti_am335x_tscadc.h index bb3b56ade3fb..23442059d271 100644 --- a/include/linux/mfd/ti_am335x_tscadc.h +++ b/include/linux/mfd/ti_am335x_tscadc.h @@ -177,10 +177,7 @@ struct ti_tscadc_dev { phys_addr_t tscadc_phys_base; const struct ti_tscadc_data *data; int irq; - int used_cells; /* 1-2 */ int tsc_wires; - int tsc_cell; /* -1 if not used */ - int adc_cell; /* -1 if not used */ struct mfd_cell cells[TSCADC_CELLS]; u32 reg_se_cache; bool adc_waiting; |