Date: Wed, 4 Jul 2007 03:28:06 GMT From: Rui Paulo <rpaulo@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 122826 for review Message-ID: <200707040328.l643S6wp072325@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=122826 Change 122826 by rpaulo@rpaulo_epsilon on 2007/07/04 03:27:20 Style fixes. Affected files ... .. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 edit .. //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 edit Differences ... ==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 (text+ko) ==== @@ -23,7 +23,7 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#5 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlight.c#6 $ * */ @@ -49,15 +49,15 @@ #include <dev/backlight/backlightvar.h> -static struct backlight_model *backlight_match(device_t); +static struct backlight_model *backlight_match(device_t dev); /* * Device interface. */ -static void backlight_identify(driver_t *, device_t); -static int backlight_probe(device_t); -static int backlight_attach(device_t); -static int backlight_detach(device_t); +static void backlight_identify(driver_t *driver, device_t dev); +static int backlight_probe(device_t dev); +static int backlight_attach(device_t dev); +static int backlight_detach(device_t dev); /* * Backlight modules. @@ -100,7 +100,7 @@ static devclass_t backlight_devclass; DRIVER_MODULE(backlight, vgapci, backlight_driver, backlight_devclass, NULL, - NULL); + NULL); MODULE_DEPEND(backlight, pci, 1, 1, 1); @@ -177,22 +177,23 @@ sysctl_ctx_init(&sc->sc_sysctl_ctx); sc->sc_sysctl_tree = SYSCTL_ADD_NODE(&sc->sc_sysctl_ctx, - SYSCTL_STATIC_CHILDREN(_hw), - OID_AUTO, - device_get_name(dev), - CTLFLAG_RD, 0, ""); + SYSCTL_STATIC_CHILDREN(_hw), + OID_AUTO, + device_get_name(dev), + CTLFLAG_RD, 0, ""); SYSCTL_ADD_PROC(&sc->sc_sysctl_ctx, - SYSCTL_CHILDREN(sc->sc_sysctl_tree), - OID_AUTO, "enable", CTLTYPE_INT | CTLFLAG_RW, - sc, 0, model->bm_enable, "I", - "Turn the backlight on/off"); + SYSCTL_CHILDREN(sc->sc_sysctl_tree), + OID_AUTO, "enable", CTLTYPE_INT | CTLFLAG_RW, + sc, 0, model->bm_enable, "I", + "Turn the backlight on/off"); SYSCTL_ADD_PROC(&sc->sc_sysctl_ctx, - SYSCTL_CHILDREN(sc->sc_sysctl_tree), - OID_AUTO, "level", CTLTYPE_INT | CTLFLAG_RW, - sc, 0, model->bm_level, "I", - "Brightness level of the backlight"); + SYSCTL_CHILDREN(sc->sc_sysctl_tree), + OID_AUTO, "level", CTLTYPE_INT | CTLFLAG_RW, + sc, 0, model->bm_level, "I", + "Brightness level of the backlight"); + return 0; } ==== //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 (text+ko) ==== @@ -23,18 +23,15 @@ * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. * - * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#2 $ + * $P4: //depot/projects/soc2007/rpaulo-macbook/dev/backlight/backlightvar.h#3 $ * */ struct backlight_softc { device_t sc_dev; - uint32_t sc_enable; /* turn the backlight on/off */ uint32_t sc_level; /* brightness level */ - struct resource *sc_res; - struct sysctl_ctx_list sc_sysctl_ctx; struct sysctl_oid *sc_sysctl_tree; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200707040328.l643S6wp072325>