]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/spi/cf_qspi.c
spi: cf_qspi: Fixup to_cf_qspi_slave macro
[karo-tx-uboot.git] / drivers / spi / cf_qspi.c
index 6b8563366b8ee40d500066a6039b0bfad180ea78..834c5bd259d3fd2f2e4dcb7e0a27c86c52e3422f 100644 (file)
@@ -20,7 +20,7 @@
 DECLARE_GLOBAL_DATA_PTR;
 
 #define clamp(x, low, high) (min(max(low, x), high))
-#define to_cf_qspi_slave(s) container_of(s, struct cf_qspi_slave, s)
+#define to_cf_qspi_slave(s) container_of(s, struct cf_qspi_slave, slave)
 
 struct cf_qspi_slave {
        struct spi_slave slave; /* Specific bus:cs ID for each device */