From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Mon, 17 Nov 2014 16:59:24 +0100 Subject: [PATCH] gpio: mxs: implement get_direction callback In-Reply-To: <546A09EC.8080809@elproma.com.pl> References: <1416004026-9667-1-git-send-email-j.uzycki@elproma.com.pl> <20141114232601.GW27002@pengutronix.de> <5467A980.5090204@elproma.com.pl> <20141116214239.GX27002@pengutronix.de> <54693A51.5080907@elproma.com.pl> <546A09EC.8080809@elproma.com.pl> Message-ID: <20141117155924.GK27002@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Nov 17, 2014 at 03:45:00PM +0100, Janusz U?ycki wrote: > W dniu 2014-11-17 o 10:26, Richard Genoud pisze: > >And, honestly, I'm not sure dev_name(dev) is a good name. > >Having something like dev_name(dev)_port_id_CTS may be better. > > > > For names other than device's or driver's name I would need to allocate > string. Is it so important? You can simple check the interrupt and > corresponding port: > cat /proc/interrupts > 50: 0 gpio-mxs 21 80072000.serial > 80: 0 gpio-mxs 18 8006c000.serial > 81: 0 gpio-mxs 19 8006c000.serial > 83: 0 gpio-mxs 21 8006c000.serial > 84: 0 gpio-mxs 22 8006c000.serial I'd say this is good enough. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |