@@ -98,7 +98,8 @@ static int i2c_counter_read(struct rtcnt_device_info *dev_info, int *ret)
98
98
* update_signed_count - update signed pulse count of dev_info
99
99
* called by rtcnt_read()
100
100
*/
101
- static void update_signed_count (struct rtcnt_device_info * dev_info , int rtcnt_count )
101
+ static void update_signed_count (struct rtcnt_device_info * dev_info ,
102
+ int rtcnt_count )
102
103
{
103
104
int diff_count = rtcnt_count - dev_info -> raw_pulse_count ;
104
105
@@ -134,7 +135,8 @@ static void update_signed_count(struct rtcnt_device_info *dev_info, int rtcnt_co
134
135
* reset_signed_count - reset signed pulse count of dev_info
135
136
* called by rtcnt_write()
136
137
*/
137
- static void reset_signed_count (struct rtcnt_device_info * dev_info , int rtcnt_count )
138
+ static void reset_signed_count (struct rtcnt_device_info * dev_info ,
139
+ int rtcnt_count )
138
140
{
139
141
int raw_count ;
140
142
@@ -202,7 +204,8 @@ static unsigned int mcp3204_get_value(int channel)
202
204
203
205
/*
204
206
* pwm set function
205
- * called by buzzer_init() and set_motor_l_freq(), set_motor_r_freq(), buzzer_write()
207
+ * called by buzzer_init(), set_motor_l_freq(), set_motor_r_freq()
208
+ * and buzzer_write()
206
209
*/
207
210
void rpi_pwm_write32 (uint32_t offset , uint32_t val )
208
211
{
@@ -211,7 +214,8 @@ void rpi_pwm_write32(uint32_t offset, uint32_t val)
211
214
212
215
/*
213
216
* set mask and value
214
- * called by sensor_read(), set_motor_l_freq(), set_motor_r_freq(), led_put() and motoren_write()
217
+ * called by sensor_read(), set_motor_l_freq(), set_motor_r_freq(), led_put()
218
+ * and motoren_write()
215
219
*/
216
220
void rpi_gpio_set32 (uint32_t mask , uint32_t val )
217
221
{
@@ -220,7 +224,8 @@ void rpi_gpio_set32(uint32_t mask, uint32_t val)
220
224
221
225
/*
222
226
* clear mask and value
223
- * called by sensor_read(), set_motor_l_freq(), set_motor_r_freq(), led_del() and motoren_write()
227
+ * called by sensor_read(), set_motor_l_freq(), set_motor_r_freq(), led_del()
228
+ * and motoren_write()
224
229
*/
225
230
void rpi_gpio_clear32 (uint32_t mask , uint32_t val )
226
231
{
@@ -229,7 +234,8 @@ void rpi_gpio_clear32(uint32_t mask, uint32_t val)
229
234
230
235
/*
231
236
* set function
232
- * called by buzzer_init(), set_motor_l_freq(), set_motor_r_freq() and buzzer_write()
237
+ * called by buzzer_init(), set_motor_l_freq(), set_motor_r_freq() and
238
+ * buzzer_write()
233
239
*/
234
240
int rpi_gpio_function_set (int pin , uint32_t func )
235
241
{
@@ -672,14 +678,17 @@ static int i2c_dev_open(struct inode *inode, struct file *filep)
672
678
return 0 ;
673
679
}
674
680
675
- static int i2c_dev_release (struct inode * inode , struct file * filep ) { return 0 ; }
681
+ static int i2c_dev_release (struct inode * inode , struct file * filep )
682
+ {
683
+ return 0 ;
684
+ }
676
685
677
686
/*
678
687
* led_write - Trun ON/OFF LEDs
679
688
* Write function of /dev/rtled
680
689
*/
681
- static ssize_t led_write (struct file * filep , const char __user * buf , size_t count ,
682
- loff_t * f_pos )
690
+ static ssize_t led_write (struct file * filep , const char __user * buf ,
691
+ size_t count , loff_t * f_pos )
683
692
{
684
693
char cval ;
685
694
int ret ;
@@ -706,8 +715,8 @@ static ssize_t led_write(struct file *filep, const char __user *buf, size_t coun
706
715
* buzzer_write - Write buzzer frequency
707
716
* Write function of /dev/rtbuzzer
708
717
*/
709
- static ssize_t buzzer_write (struct file * filep , const char __user * buf , size_t count ,
710
- loff_t * f_pos )
718
+ static ssize_t buzzer_write (struct file * filep , const char __user * buf ,
719
+ size_t count , loff_t * f_pos )
711
720
{
712
721
int ret ;
713
722
int freq , dat ;
@@ -746,7 +755,7 @@ static ssize_t buzzer_write(struct file *filep, const char __user *buf, size_t c
746
755
* Write function of /dev/rtmotor_raw_l
747
756
*/
748
757
static ssize_t rawmotor_l_write (struct file * filep , const char __user * buf ,
749
- size_t count , loff_t * f_pos )
758
+ size_t count , loff_t * f_pos )
750
759
{
751
760
int freq , ret ;
752
761
@@ -766,7 +775,7 @@ static ssize_t rawmotor_l_write(struct file *filep, const char __user *buf,
766
775
* Write function of /dev/rtmotor_raw_r
767
776
*/
768
777
static ssize_t rawmotor_r_write (struct file * filep , const char __user * buf ,
769
- size_t count , loff_t * f_pos )
778
+ size_t count , loff_t * f_pos )
770
779
{
771
780
int freq , ret ;
772
781
@@ -786,8 +795,8 @@ static ssize_t rawmotor_r_write(struct file *filep, const char __user *buf,
786
795
* motoren_write - Turn ON/OFF SteppingMotor Power
787
796
* Write function of /dev/rtmotoren
788
797
*/
789
- static ssize_t motoren_write (struct file * filep , const char __user * buf , size_t count ,
790
- loff_t * f_pos )
798
+ static ssize_t motoren_write (struct file * filep , const char __user * buf ,
799
+ size_t count , loff_t * f_pos )
791
800
{
792
801
char cval ;
793
802
@@ -813,8 +822,8 @@ static ssize_t motoren_write(struct file *filep, const char __user *buf, size_t
813
822
* motor_write - Output frequency to right and left both motors
814
823
* Write function of /dev/rtmotor
815
824
*/
816
- static ssize_t motor_write (struct file * filep , const char __user * buf , size_t count ,
817
- loff_t * f_pos )
825
+ static ssize_t motor_write (struct file * filep , const char __user * buf ,
826
+ size_t count , loff_t * f_pos )
818
827
{
819
828
int tmp ;
820
829
int bufcnt ;
0 commit comments