From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick DELAUNAY Date: Thu, 21 Jan 2021 10:02:55 +0100 Subject: [PATCH 03/15] dm: gpio: Rename get_dir_flags() method to get_flags() In-Reply-To: <20210115140500.846307-4-sjg@chromium.org> References: <20210115140500.846307-1-sjg@chromium.org> <20210115140500.846307-4-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On 1/15/21 3:04 PM, Simon Glass wrote: > It is more useful to be able to read all the flags, not just the direction > ones. In fact this is what the STM32 driver does. Update the method name > to reflect this. > > Tweak the docs a little and use 'flagsp' as the return argument, as is > common in driver model, to indicate it returns a value. > > Signed-off-by: Simon Glass > --- > > drivers/gpio/gpio-uclass.c | 30 +++++++++++++++--------------- > drivers/gpio/sandbox.c | 8 ++++---- > drivers/gpio/stm32_gpio.c | 8 ++++---- > drivers/pinctrl/pinctrl-stmfx.c | 8 ++++---- > include/asm-generic/gpio.h | 13 +++++++------ > 5 files changed, 34 insertions(+), 33 deletions(-) > Reviewed-by: Patrick Delaunay Thanks Patrick