From: naddy Date: Sat, 9 Apr 2022 20:09:03 +0000 (+0000) Subject: constify method tables in OAK USB sensor drivers X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=8197d3cebbbf540fcab06930029975b7c4e7b843;p=openbsd constify method tables in OAK USB sensor drivers ok miod@ --- diff --git a/sys/dev/usb/uoak.h b/sys/dev/usb/uoak.h index 789cef98e6a..c1c63a72548 100644 --- a/sys/dev/usb/uoak.h +++ b/sys/dev/usb/uoak.h @@ -1,4 +1,4 @@ -/* $OpenBSD: uoak.h,v 1.4 2022/01/09 05:43:01 jsg Exp $ */ +/* $OpenBSD: uoak.h,v 1.5 2022/04/09 20:09:03 naddy Exp $ */ /* * Copyright (c) 2012 Yojiro UO @@ -133,7 +133,7 @@ struct uoak_softc { struct uoak_config sc_config[OAK_TARGET_MAXTYPES]; /* device specific methods */ - struct uoak_methods *sc_methods; + const struct uoak_methods *sc_methods; }; diff --git a/sys/dev/usb/uoaklux.c b/sys/dev/usb/uoaklux.c index d04fd5c5823..fee39e26877 100644 --- a/sys/dev/usb/uoaklux.c +++ b/sys/dev/usb/uoaklux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uoaklux.c,v 1.16 2022/01/09 05:43:01 jsg Exp $ */ +/* $OpenBSD: uoaklux.c,v 1.17 2022/04/09 20:09:03 naddy Exp $ */ /* * Copyright (c) 2012 Yojiro UO @@ -96,7 +96,7 @@ const struct cfattach uoaklux_ca = { uoaklux_detach, }; -struct uoak_methods uoaklux_methods = { +const struct uoak_methods uoaklux_methods = { uoaklux_dev_print, uoaklux_dev_setting }; diff --git a/sys/dev/usb/uoakrh.c b/sys/dev/usb/uoakrh.c index 0257f4ee368..4d8b253d6dd 100644 --- a/sys/dev/usb/uoakrh.c +++ b/sys/dev/usb/uoakrh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uoakrh.c,v 1.18 2022/01/09 05:43:01 jsg Exp $ */ +/* $OpenBSD: uoakrh.c,v 1.19 2022/04/09 20:09:03 naddy Exp $ */ /* * Copyright (c) 2012 Yojiro UO @@ -99,7 +99,7 @@ const struct cfattach uoakrh_ca = { uoakrh_detach, }; -struct uoak_methods uoakrh_methods = { +const struct uoak_methods uoakrh_methods = { uoakrh_dev_print, uoakrh_dev_setting }; diff --git a/sys/dev/usb/uoakv.c b/sys/dev/usb/uoakv.c index 011f5c858aa..221b659e0f5 100644 --- a/sys/dev/usb/uoakv.c +++ b/sys/dev/usb/uoakv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uoakv.c,v 1.16 2022/01/09 05:43:02 jsg Exp $ */ +/* $OpenBSD: uoakv.c,v 1.17 2022/04/09 20:09:03 naddy Exp $ */ /* * Copyright (c) 2012 Yojiro UO @@ -100,7 +100,7 @@ const struct cfattach uoakv_ca = { }; -struct uoak_methods uoakv_methods = { +const struct uoak_methods uoakv_methods = { uoakv_dev_print, uoakv_dev_setting };