changeset 3979:3ddeb1eba4d7

driver/si446x: minor fixes
author Alexandre Becoulet <alexandre.becoulet@free.fr>
date Mon, 09 Jul 2018 17:01:57 +0200
parents c968e80489a0
children 0d99c676b1b9
files drivers/rfpacket/si446x/si446x.c drivers/rfpacket/si446x/si446x_spi.bc
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/drivers/rfpacket/si446x/si446x.c	Mon Jul 09 17:01:22 2018 +0200
+++ b/drivers/rfpacket/si446x/si446x.c	Mon Jul 09 17:01:57 2018 +0200
@@ -1582,7 +1582,7 @@
 
   pv->pwr = 0xFFFF;
 
-  if (device_get_param_blob(dev, "rftune", 0, (void**)&pv->rftune))
+  if (device_get_param_blob(dev, "rftune", 0, (const void**)&pv->rftune))
     pv->rftune = NULL;
 
   /* Start initialisation */
--- a/drivers/rfpacket/si446x/si446x_spi.bc	Mon Jul 09 17:01:22 2018 +0200
+++ b/drivers/rfpacket/si446x/si446x_spi.bc	Mon Jul 09 17:01:57 2018 +0200
@@ -231,8 +231,7 @@
         ld32e                   %tmp,            %R_CTX_PV,     _offsetof(si446x_ctx_s, rq, 4)
         ld16e                   %size,           %tmp,          _offsetof(dev_rfpacket_rq_s, tx_size, 2)
         /* Add 1 for the size byte */
-        cst8                    %tmp,            1
-        add                     %size,           %tmp
+        add8                    %size,           1
         shi32l                  %size,           16
         cst32                   %tmp,            0xFF000000,  0
         and32                   %tmp,            %size