Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2019 20:18:34 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r349211 - stable/12/sys/dev/amdgpio
Message-ID:  <201906192018.x5JKIYXU041804@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Wed Jun 19 20:18:34 2019
New Revision: 349211
URL: https://svnweb.freebsd.org/changeset/base/349211

Log:
  MFC r348227: amdgpio: remove new line symbols from pin names

Modified:
  stable/12/sys/dev/amdgpio/amdgpio.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/dev/amdgpio/amdgpio.c
==============================================================================
--- stable/12/sys/dev/amdgpio/amdgpio.c	Wed Jun 19 20:16:42 2019	(r349210)
+++ stable/12/sys/dev/amdgpio/amdgpio.c	Wed Jun 19 20:18:34 2019	(r349211)
@@ -383,7 +383,7 @@ amdgpio_attach(device_t dev)
 	/* Initialize all possible pins to be Invalid */
 	for (i = 0; i < AMD_GPIO_PINS_MAX ; i++) {
 		snprintf(sc->sc_gpio_pins[i].gp_name, GPIOMAXNAME,
-			"Unexposed PIN %d\n", i);
+			"Unexposed PIN %d", i);
 		sc->sc_gpio_pins[i].gp_pin = -1;
 		sc->sc_gpio_pins[i].gp_caps = 0;
 		sc->sc_gpio_pins[i].gp_flags = 0;
@@ -393,12 +393,13 @@ amdgpio_attach(device_t dev)
 	for (i = 0; i < AMD_GPIO_PINS_EXPOSED ; i++) {
 		pin = kernzp_pins[i].pin_num;
 		bank = pin/AMD_GPIO_PINS_PER_BANK;
-		snprintf(sc->sc_gpio_pins[pin].gp_name, GPIOMAXNAME, "%s%d_%s\n",
+		snprintf(sc->sc_gpio_pins[pin].gp_name, GPIOMAXNAME, "%s%d_%s",
 			AMD_GPIO_PREFIX, bank, kernzp_pins[i].pin_name);
 		sc->sc_gpio_pins[pin].gp_pin = pin;
 		sc->sc_gpio_pins[pin].gp_caps = AMDGPIO_DEFAULT_CAPS;
-		sc->sc_gpio_pins[pin].gp_flags = (amdgpio_is_pin_output(sc, pin)?
-						GPIO_PIN_OUTPUT : GPIO_PIN_INPUT);
+		sc->sc_gpio_pins[pin].gp_flags =
+		    amdgpio_is_pin_output(sc, pin) ?
+		    GPIO_PIN_OUTPUT : GPIO_PIN_INPUT;
 	}
 
 	sc->sc_busdev = gpiobus_attach_bus(dev);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906192018.x5JKIYXU041804>