lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 15 Nov 2011 10:36:57 -0800
From:	Stephen Warren <swarren@...dia.com>
To:	Dong Aisheng <dong.aisheng@...aro.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
CC:	"grant.likely@...retlab.ca" <grant.likely@...retlab.ca>,
	"arnd@...db.de" <arnd@...db.de>
Subject: RE: [PATCH 1/1] gpio: introduce gpio_export_array to ease export
 for gpio arrays

Dong Aisheng wrote at Tuesday, November 15, 2011 2:54 AM:
> Introduce gpio_export_array function to ease the export operation
> for gpio arrays.
> This can cooperate with the exist gpio_request_array function.
...
> +/**
> + * gpio_export_array - export multiple GPIOs in a single call
> + * @array:	array of the 'struct gpio'
> + * @num:	how many GPIOs in the array
> + */
> +int gpio_export_array(const struct gpio *array, size_t num,
> +			bool direction_may_change)

Should direction_may_change be added to "struct gpio" so it can vary
per pin?

I might this new function to create its own parameter type instead of
re-using struct gpio, but I guess the main value here is re-using the
data passed to both request_array and export_array.

-- 
nvpublic

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ