state: use name of device node as name if alias is not available
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.

This patch fixes the limitation by using the device node's name if no alias is
defined.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent ef39770 commit 7098d7121e98a8a9bcda726c1a35ac2d0f29de65
@Marc Kleine-Budde Marc Kleine-Budde authored on 25 Oct 2015
Sascha Hauer committed on 27 Nov 2015
Showing 1 changed file
View
drivers/misc/state.c