Re: [PATCH 2/2] usb: r8a66597-udc: add support for SUDMAC

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
2011/09/30 17:17, Felipe Balbi wrote:
> Hi,
>
< snip >
> On Mon, Sep 26, 2011 at 05:43:02PM +0900, Yoshihiro Shimoda wrote:
>> @@ -186,6 +187,51 @@ static inline void control_reg_sqclr(struct r8a66597 *r8a66597, u16 pipenum)
>>  		printk(KERN_ERR "unexpect pipe num(%d)\n", pipenum);
>>  }
>>
>> +static void control_reg_sqset(struct r8a66597 *r8a66597, u16 pipenum)
>> +{
>> +	unsigned long offset;
>> +
>> +	pipe_stop(r8a66597, pipenum);
>> +
>> +	if (pipenum == 0)
>> +		r8a66597_bset(r8a66597, SQSET, DCPCTR);
>> +	else if (pipenum < R8A66597_MAX_NUM_PIPE) {
>> +		offset = get_pipectr_addr(pipenum);
>> +		r8a66597_bset(r8a66597, SQSET, offset);
>> +	} else
>> +		printk(KERN_ERR "unexpect pipe num(%d)\n", pipenum);
> 
> according to CodingStyle, if one branch as braces, all of them should
> have. Also, try to avoid printk(), I guess you have a *dev here to use
> dev_err(). Besides this, I guess it looks fine.
> 

I knew the rule, but I mistook the code...
I will fix it. And I also use dev_err() instead of printk().

Best regards,
Yoshihiro Shimoda
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux