summaryrefslogtreecommitdiff
path: root/drivers/counter
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-04-27 00:48:16 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-24 20:45:41 +0200
commit17aa207e6e08b0bcf92cf7b473fae9a70e325dbe (patch)
tree7dce137b71046824628fb93882bbb5377e071bd6 /drivers/counter
parent31641e34e8a3da5735d3cc901fb986bf6df28b6f (diff)
counter: 104-quad-8: Make quad8_ops static
Fix sparse warning: drivers/counter/104-quad-8.c:836:26: warning: symbol 'quad8_ops' was not declared. Should it be static? Signed-off-by: YueHaibing <yuehaibing@huawei.com> Acked-by: William Breathitt Gray <vilhelm.gray@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/counter')
-rw-r--r--drivers/counter/104-quad-8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/counter/104-quad-8.c b/drivers/counter/104-quad-8.c
index 4fa2931dcb7b..00b113f4b958 100644
--- a/drivers/counter/104-quad-8.c
+++ b/drivers/counter/104-quad-8.c
@@ -833,7 +833,7 @@ static int quad8_action_get(struct counter_device *counter,
return 0;
}
-const struct counter_ops quad8_ops = {
+static const struct counter_ops quad8_ops = {
.signal_read = quad8_signal_read,
.count_read = quad8_count_read,
.count_write = quad8_count_write,