From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geert Uytterhoeven Date: Mon, 11 Jan 2016 18:19:43 +0000 Subject: Re: [PATCH 1/3] media: soc_camera: rcar_vin: Add rcar fallback compatibility string Message-Id: List-Id: References: <1452535211-4869-1-git-send-email-ykaneko0929@gmail.com> <1452535211-4869-2-git-send-email-ykaneko0929@gmail.com> In-Reply-To: <1452535211-4869-2-git-send-email-ykaneko0929@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Yoshihiro Kaneko Cc: Linux Media Mailing List , Guennadi Liakhovetski , Simon Horman , Magnus Damm , Linux-sh list Hi Kaneko-san, On Mon, Jan 11, 2016 at 7:00 PM, Yoshihiro Kaneko wrote: > --- a/drivers/media/platform/soc_camera/rcar_vin.c > +++ b/drivers/media/platform/soc_camera/rcar_vin.c > @@ -143,6 +143,7 @@ > #define RCAR_VIN_BT656 (1 << 3) > > enum chip_id { > + RCAR_GEN3, > RCAR_GEN2, > RCAR_H1, > RCAR_M1, > @@ -1818,6 +1819,8 @@ static struct soc_camera_host_ops rcar_vin_host_ops = { > > #ifdef CONFIG_OF > static const struct of_device_id rcar_vin_of_table[] = { > + { .compatible = "renesas,rcar-gen2-vin", .data = (void *)RCAR_GEN2 }, > + { .compatible = "renesas,rcar-gen3-vin", .data = (void *)RCAR_GEN3 }, Please add the generic compatible values at the end of the list, so SoC-specific ones take precedence. > { .compatible = "renesas,vin-r8a7794", .data = (void *)RCAR_GEN2 }, > { .compatible = "renesas,vin-r8a7793", .data = (void *)RCAR_GEN2 }, > { .compatible = "renesas,vin-r8a7791", .data = (void *)RCAR_GEN2 }, Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds