[PATCH] state: use name of device node as name, if alias is not available
s.hauer at pengutronix.de
Sun Jul 5 21:37:05 PDT 2015
On Fri, Jul 03, 2015 at 01:49:41PM +0200, Marc Kleine-Budde wrote:
> Wihtout this patch, when using more than one state device an alias is
> mandatory, otherwise the there will be two state devices with the name state.
Are there really two devices? I hope there's a -EEXIST somewhere...
> This patch fixes the limitation by using the device node's name if no alias is
The node name is not necessarily unique. Also you might end up with
state names like "state at 0" which probably also is not what we want.
Maybe making the alias mandatory for multiple state devices is not the
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
More information about the barebox