hello:
my kernel version is 3.0.35,I want integrate adv7181 in my kernel,but compile error is here,
compiler is not found #include <linux/pinctrl/consumer.h>, how to do?
/*!
* @file adv7181.c
*
* @brief Analog Device ADV7181 video decoder functions
*
* @ingroup Camera
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/i2c.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/of_device.h>
#include <linux/of_gpio.h>
#include <linux/pinctrl/consumer.h> // cannot found header file
#include <linux/regulator/consumer.h>
#include <media/v4l2-chip-ident.h>
#include <media/v4l2-int-device.h>
#include "mxc_v4l2_capture.h"
Hello, Richar,
ADV7180 is supported by linux 3.0.35 BSP that released by Freescale, ADV7180 and ADV7181 are very similar , so you can refer to adv7180 driver and integrate adv7181 into your system.
adv7180 driver is under path "linux_top/drivers/media/video/mxc/capture/adv7180.c" .
Hope this answer can help you !
Regards,
Weidong