changeset 3980:0d99c676b1b9

drivers/si446x: renamed CONFIG_DRIVER_RFPACKET_SLEEP/CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Mon, 09 Jul 2018 17:04:20 +0200
parents 3ddeb1eba4d7
children 3cd4e0cb518c
files drivers/rfpacket/si446x/si446x.c drivers/rfpacket/si446x/si446x.config drivers/rfpacket/si446x/si446x_spi.bc
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/rfpacket/si446x/si446x.c	Mon Jul 09 17:01:57 2018 +0200
+++ b/drivers/rfpacket/si446x/si446x.c	Mon Jul 09 17:04:20 2018 +0200
@@ -846,7 +846,7 @@
 
   if (!rq)
     {
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
      /* delayed clock disable */
       device_sleep_schedule(pv->dev);
 #endif
@@ -967,7 +967,7 @@
             pv->rx_cont = rq;
             si446x_rfp_idle(pv);
             break;
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
           case SI446X_STATE_SLEEP:
             if (!pv->bcrun)
               {
@@ -1005,7 +1005,7 @@
               case SI446X_STATE_READY:
                 si446x_rfp_idle(pv);
                 break;
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
               case SI446X_STATE_SLEEP:
                 if (!pv->bcrun)
                   {
@@ -1333,7 +1333,7 @@
   }
 }
 
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
 /* Transceiver is sleeping when this function is called */
 static inline void si446x_sleep(struct si446x_ctx_s *pv)
 {
@@ -1383,7 +1383,7 @@
 
   switch (pv->state)
   {
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
     case SI446X_STATE_SLEEP:
       si446x_sleep(pv);
       break;
@@ -1471,7 +1471,7 @@
 {
   switch (op)
     {
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
     case DEV_USE_SLEEP: {
       struct device_s *dev = param;
       struct si446x_ctx_s *pv = dev->drv_pv;
@@ -1611,7 +1611,7 @@
   switch (pv->state)
     {
     case SI446X_STATE_READY:
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
     case SI446X_STATE_SLEEP:
 #endif
       assert(dev_request_queue_isempty(&pv->queue));
--- a/drivers/rfpacket/si446x/si446x.config	Mon Jul 09 17:01:57 2018 +0200
+++ b/drivers/rfpacket/si446x/si446x.config	Mon Jul 09 17:04:20 2018 +0200
@@ -84,7 +84,7 @@
   flags value
 %config end
 
-%config CONFIG_DRIVER_RFPACKET_SLEEP
+%config CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
   desc SI446X Sleep mode support
   parent CONFIG_DRIVER_RFPACKET_SI446X
   depend CONFIG_DEVICE_SLEEP
--- a/drivers/rfpacket/si446x/si446x_spi.bc	Mon Jul 09 17:01:57 2018 +0200
+++ b/drivers/rfpacket/si446x/si446x_spi.bc	Mon Jul 09 17:04:20 2018 +0200
@@ -654,7 +654,7 @@
         ret                     %link
 .endfunc
 
-#ifdef CONFIG_DRIVER_RFPACKET_SLEEP
+#ifdef CONFIG_DRIVER_RFPACKET_SI446X_SLEEP
 .func si446x_entry_ready
         .export si446x_entry_ready
         .clobber %0, %4, %11, %12, %13