spi.h
int spi_config_match_cs(struct device* dev, void* data) {
	const struct spi_device* sdev = (struct spi_device*) dev;
	const u8 cs = (int)data;
	return (sdev->chip_select == cs);
}
/** check whether the given device matches the given chip-select pin number */
check whether the given device matches the given chip-select pin number
check whether the given device matches the given chip - select pin number
int spi_config_match_cs(struct device* dev, void* data) {
	const struct spi_device* sdev = (struct spi_device*) dev;
	const u8 cs = (int)data;
	return (sdev->chip_select == cs);
}
int spi_config_match_cs ( struct device * dev , void * data ) { const struct spi_device * sdev = ( struct spi_device * ) dev ; const u8 cs = ( int ) data ; return ( sdev -> chip_select == cs ) ; }
check whether the given device matches the given chip-select pin number
check whether the given device matches the given chip - select pin number