how platform device drivers are different
I am new to linux.Recently I checked two device drivers for SPI (serial peripheral interface). One driver is using platform_driver_register function to register the driver and it is using spi base address.
The other driver is using spi_register_driver to register it and it is using the SPI bus number.
Why the difference between these two drivers. If it is based on the chip set, then how do I know, when to use the platform device driver and when to use the other.
Please help me.