Skip to content

Commit 90b1552

Browse files
alexaringdavem330
authored andcommitted
at86rf230: add at86rf230_device_id table
This patch adds a at86rf230_device_id table to offers various module aliases. Signed-off-by: Alexander Aring <[email protected]> Reported-by: Varka Bhadram <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1086b4f commit 90b1552

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

drivers/net/ieee802154/at86rf230.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,7 +1226,17 @@ static const struct of_device_id at86rf230_of_match[] = {
12261226
MODULE_DEVICE_TABLE(of, at86rf230_of_match);
12271227
#endif
12281228

1229+
static const struct spi_device_id at86rf230_device_id[] = {
1230+
{ .name = "at86rf230", },
1231+
{ .name = "at86rf231", },
1232+
{ .name = "at86rf233", },
1233+
{ .name = "at86rf212", },
1234+
{ },
1235+
};
1236+
MODULE_DEVICE_TABLE(spi, at86rf230_device_id);
1237+
12291238
static struct spi_driver at86rf230_driver = {
1239+
.id_table = at86rf230_device_id,
12301240
.driver = {
12311241
.of_match_table = of_match_ptr(at86rf230_of_match),
12321242
.name = "at86rf230",

0 commit comments

Comments
 (0)