/* Read scroller */ if ( GPIOD_INPUT_VAL & 0x20 ) { GPIOD_OUTPUT_VAL &=~ 0x40; udelay(50); data = adc_scan(ADC_SCROLLPAD); udelay(50); data1 = adc_scan(ADC_SCROLLPAD); GPIOD_OUTPUT_VAL |= 0x40; data_avg = ((data+data1)/0x2) target/arm/iriver/h10/button-h10.c: In function ‘button_read_device’: target/arm/iriver/h10/button-h10.c:113: error: syntax error before ‘if’ target/arm/iriver/h10/button-h10.c:72: warning: unused variable ‘remote_hold_button_old’ target/arm/iriver/h10/button-h10.c:70: warning: unused variable ‘remote_hold_button’ target/arm/iriver/h10/button-h10.c:129: warning: control reaches end of non-void function target/arm/iriver/h10/button-h10.c: At top level: target/arm/iriver/h10/button-h10.c:130: error: syntax error before ‘}’ token target/arm/iriver/h10/button-h10.c:133: warning: type defaults to ‘int’ in declaration of ‘remote_hold_button_old’ target/arm/iriver/h10/button-h10.c:133: error: ‘remote_hold_button’ undeclared here (not in a function) target/arm/iriver/h10/button-h10.c:133: warning: data definition has no type or storage class target/arm/iriver/h10/button-h10.c:135: warning: type defaults to ‘int’ in declaration of ‘data’ target/arm/iriver/h10/button-h10.c:135: error: initializer element is not constant target/arm/iriver/h10/button-h10.c:135: warning: data definition has no type or storage class target/arm/iriver/h10/button-h10.c:136: warning: type defaults to ‘int’ in declaration of ‘remote_hold_button’ target/arm/iriver/h10/button-h10.c:136: error: initializer element is not constant target/arm/iriver/h10/button-h10.c:136: warning: data definition has no type or storage class target/arm/iriver/h10/button-h10.c:139: error: syntax error before ‘if’ target/arm/iriver/h10/button-h10.c:164: warning: type defaults to ‘int’ in declaration of ‘lastbtn’ target/arm/iriver/h10/button-h10.c:164: error: ‘btn’ undeclared here (not in a function) target/arm/iriver/h10/button-h10.c:164: warning: data definition has no type or storage class target/arm/iriver/h10/button-h10.c:165: error: syntax error before ‘return’ make[1]: *** [/mnt/other/rockbox/build/h10_5gb_normal/firmware/target/arm/iriver/h10/button-h10.o] Error 1