Skip to content

Commit 92ec244

Browse files
committed
lintに対応して修正
1 parent 2948238 commit 92ec244

File tree

1 file changed

+26
-17
lines changed

1 file changed

+26
-17
lines changed

src/drivers/rtmouse_dev_fops.c

Lines changed: 26 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ static int i2c_counter_read(struct rtcnt_device_info *dev_info, int *ret)
9898
* update_signed_count - update signed pulse count of dev_info
9999
* called by rtcnt_read()
100100
*/
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)
102103
{
103104
int diff_count = rtcnt_count - dev_info->raw_pulse_count;
104105

@@ -134,7 +135,8 @@ static void update_signed_count(struct rtcnt_device_info *dev_info, int rtcnt_co
134135
* reset_signed_count - reset signed pulse count of dev_info
135136
* called by rtcnt_write()
136137
*/
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)
138140
{
139141
int raw_count;
140142

@@ -202,7 +204,8 @@ static unsigned int mcp3204_get_value(int channel)
202204

203205
/*
204206
* 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()
206209
*/
207210
void rpi_pwm_write32(uint32_t offset, uint32_t val)
208211
{
@@ -211,7 +214,8 @@ void rpi_pwm_write32(uint32_t offset, uint32_t val)
211214

212215
/*
213216
* 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()
215219
*/
216220
void rpi_gpio_set32(uint32_t mask, uint32_t val)
217221
{
@@ -220,7 +224,8 @@ void rpi_gpio_set32(uint32_t mask, uint32_t val)
220224

221225
/*
222226
* 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()
224229
*/
225230
void rpi_gpio_clear32(uint32_t mask, uint32_t val)
226231
{
@@ -229,7 +234,8 @@ void rpi_gpio_clear32(uint32_t mask, uint32_t val)
229234

230235
/*
231236
* 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()
233239
*/
234240
int rpi_gpio_function_set(int pin, uint32_t func)
235241
{
@@ -672,14 +678,17 @@ static int i2c_dev_open(struct inode *inode, struct file *filep)
672678
return 0;
673679
}
674680

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+
}
676685

677686
/*
678687
* led_write - Trun ON/OFF LEDs
679688
* Write function of /dev/rtled
680689
*/
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)
683692
{
684693
char cval;
685694
int ret;
@@ -706,8 +715,8 @@ static ssize_t led_write(struct file *filep, const char __user *buf, size_t coun
706715
* buzzer_write - Write buzzer frequency
707716
* Write function of /dev/rtbuzzer
708717
*/
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)
711720
{
712721
int ret;
713722
int freq, dat;
@@ -746,7 +755,7 @@ static ssize_t buzzer_write(struct file *filep, const char __user *buf, size_t c
746755
* Write function of /dev/rtmotor_raw_l
747756
*/
748757
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)
750759
{
751760
int freq, ret;
752761

@@ -766,7 +775,7 @@ static ssize_t rawmotor_l_write(struct file *filep, const char __user *buf,
766775
* Write function of /dev/rtmotor_raw_r
767776
*/
768777
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)
770779
{
771780
int freq, ret;
772781

@@ -786,8 +795,8 @@ static ssize_t rawmotor_r_write(struct file *filep, const char __user *buf,
786795
* motoren_write - Turn ON/OFF SteppingMotor Power
787796
* Write function of /dev/rtmotoren
788797
*/
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)
791800
{
792801
char cval;
793802

@@ -813,8 +822,8 @@ static ssize_t motoren_write(struct file *filep, const char __user *buf, size_t
813822
* motor_write - Output frequency to right and left both motors
814823
* Write function of /dev/rtmotor
815824
*/
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)
818827
{
819828
int tmp;
820829
int bufcnt;

0 commit comments

Comments
 (0)