mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
spi: rockchip-test: Add spi_rockchip_test_spi_ids id_table
Change-Id: I9bc509aca655f05e6a91c014da8b6cffbf91853f Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -399,6 +399,21 @@ MODULE_DEVICE_TABLE(of, rockchip_spi_test_dt_match);
|
||||
|
||||
#endif /* CONFIG_OF */
|
||||
|
||||
static const struct spi_device_id spi_rockchip_test_spi_ids[] = {
|
||||
{ .name = "spi_test_bus0_cs0" },
|
||||
{ .name = "spi_test_bus0_cs1" },
|
||||
{ .name = "spi_test_bus1_cs0" },
|
||||
{ .name = "spi_test_bus1_cs1" },
|
||||
{ .name = "spi_test_bus2_cs0" },
|
||||
{ .name = "spi_test_bus2_cs1" },
|
||||
{ .name = "spi_test_bus3_cs0" },
|
||||
{ .name = "spi_test_bus3_cs1" },
|
||||
{ .name = "spi_test_bus4_cs0" },
|
||||
{ .name = "spi_test_bus4_cs1" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(spi, spi_rockchip_test_spi_ids);
|
||||
|
||||
static struct spi_driver spi_rockchip_test_driver = {
|
||||
.driver = {
|
||||
.name = "spi_test",
|
||||
@@ -407,6 +422,7 @@ static struct spi_driver spi_rockchip_test_driver = {
|
||||
},
|
||||
.probe = rockchip_spi_test_probe,
|
||||
.remove = rockchip_spi_test_remove,
|
||||
.id_table = spi_rockchip_test_spi_ids,
|
||||
};
|
||||
|
||||
static int __init spi_rockchip_test_init(void)
|
||||
|
||||
Reference in New Issue
Block a user