Re: [RFC][PATCH] avoid multiple inclusions of file in gadget driver

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

 



Hi Viral,

On Wednesday 17 March 2010 13:16:59 Viral Mehta wrote:
> Hi,
> Thanks for the comment.
> 
> Since I got a below mentioned error while using just u_audio.c and
> f_audio.c, I thought to attach audio.c In file included from
> drivers/usb/gadget/webcam.c:39:
> drivers/usb/gadget/f_audio.c:227: error: ‘DRIVER_DESC’ undeclared here (not
> in a function)
> 
> I also did not want to touch *audio* files.
> 
> But, I think you are right and we may need a little modification in
> existing gadget audio (audio.c) driver. The patch, howsoever, is not
> harmful and okay for me if it is applied or not.

Just #define DRIVER_DESC in your driver before including f_audio.c, that 
should fix the problem.

-- 
Regards,

Laurent Pinchart
--
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