mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
iio: temperature: fix non static symbol warnings
Fixes the following sparse warnings: drivers/iio/temperature/maxim_thermocouple.c:35:28: warning: symbol 'max6675_channels' was not declared. Should it be static? drivers/iio/temperature/maxim_thermocouple.c:52:28: warning: symbol 'max31855_channels' was not declared. Should it be static? drivers/iio/temperature/maxim_thermocouple.c:98:38: warning: symbol 'maxim_thermocouple_chips' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-By: Matt Ranostay <mranostay@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
aeb55fff38
commit
16335bcbf9
@ -32,7 +32,7 @@ enum {
|
|||||||
MAX31855,
|
MAX31855,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct iio_chan_spec max6675_channels[] = {
|
static const struct iio_chan_spec max6675_channels[] = {
|
||||||
{ /* thermocouple temperature */
|
{ /* thermocouple temperature */
|
||||||
.type = IIO_TEMP,
|
.type = IIO_TEMP,
|
||||||
.info_mask_separate =
|
.info_mask_separate =
|
||||||
@ -49,7 +49,7 @@ const struct iio_chan_spec max6675_channels[] = {
|
|||||||
IIO_CHAN_SOFT_TIMESTAMP(1),
|
IIO_CHAN_SOFT_TIMESTAMP(1),
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct iio_chan_spec max31855_channels[] = {
|
static const struct iio_chan_spec max31855_channels[] = {
|
||||||
{ /* thermocouple temperature */
|
{ /* thermocouple temperature */
|
||||||
.type = IIO_TEMP,
|
.type = IIO_TEMP,
|
||||||
.address = 2,
|
.address = 2,
|
||||||
@ -95,7 +95,7 @@ struct maxim_thermocouple_chip {
|
|||||||
u32 status_bit;
|
u32 status_bit;
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct maxim_thermocouple_chip maxim_thermocouple_chips[] = {
|
static const struct maxim_thermocouple_chip maxim_thermocouple_chips[] = {
|
||||||
[MAX6675] = {
|
[MAX6675] = {
|
||||||
.channels = max6675_channels,
|
.channels = max6675_channels,
|
||||||
.num_channels = ARRAY_SIZE(max6675_channels),
|
.num_channels = ARRAY_SIZE(max6675_channels),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user