staging: pi433: fix naming when more than one radio is used
authorMarcin Ciupak <marcin.s.ciupak@gmail.com>
Mon, 20 Nov 2017 23:05:50 +0000 (00:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 28 Nov 2017 13:11:00 +0000 (14:11 +0100)
commit99ee477425c490d92d5824bdf7c1132c226765f4
treeea1fae14da80e867d00b2d4d69805badc12b80bf
parentd2cb4845bfd1213e49a30682cec18c8825140153
staging: pi433: fix naming when more than one radio is used

When using more than one hardware radio module pi433_probe fails as the
same name is used for all modules. Create unique name by adding minor
number to the device name.

Signed-off-by: Marcin Ciupak <marcin.s.ciupak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/pi433/pi433_if.c