fix type mismatch
authorPeter Li <peter-li@ti.com>
Wed, 11 Jan 2017 16:24:42 +0000 (00:24 +0800)
committerPeter Li <peter-li@ti.com>
Wed, 11 Jan 2017 16:24:42 +0000 (00:24 +0800)
tas2557.c

index 8929590648cb28244ff6a120ed2d36bb9ebdfce8..70d255744786ac8a5168f6cb74e59d5a13e2d1af 100755 (executable)
--- a/tas2557.c
+++ b/tas2557.c
@@ -129,11 +129,13 @@ uint32_t tas2557_coeff_read(uint8_t book, uint8_t page, uint8_t reg)
 
 uint32_t tas2557_switch_device(uint8_t i2cslave)
 {
+       int device = i2cslave;
+       
        tas2557_check_node();
 
        gnDev = i2cslave;
        
-       ioctl(gTILoad, TILOAD_IOCTL_SET_CHL, &i2cslave);
+       ioctl(gTILoad, TILOAD_IOCTL_SET_CHL, &device);
        
        return 0;
 }