From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergei Shtylyov Subject: Re: [PATCH v2 6/6] usb: host: tegra: Tegra30 support Date: Tue, 06 Aug 2013 23:27:11 +0400 Message-ID: <52014E0F.10404@cogentembedded.com> References: <1375812518-3847-1-git-send-email-ttynkkynen@nvidia.com> <1375812518-3847-7-git-send-email-ttynkkynen@nvidia.com> <520141F2.4060907@cogentembedded.com> <52014B89.9040106@nvidia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <52014B89.9040106-DDmLM1+adcrQT0dZR+AlfA@public.gmane.org> Sender: linux-usb-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Tuomas Tynkkynen Cc: "balbi-l0cyMroinI0@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , "swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org" , "gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org" , "stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz@public.gmane.org" List-Id: linux-tegra@vger.kernel.org Hello. On 08/06/2013 11:16 PM, Tuomas Tynkkynen wrote: > [...] >>> + match = of_match_device(tegra_ehci_of_match, &pdev->dev); >>> + if (!match) { >>> + dev_err(&pdev->dev, "Error: No device match found\n"); >>> + return -ENODEV; >>> + } >>> + soc_config = (struct tegra_ehci_soc_config *)match->data; >> Aren't casts from 'const void *' automatic? >> WBR, Sergei > Indeed they are, but those explicit casts seem to be used in many places in the kernel. I suspect people just don't know C well enough. They are also being gradually removed. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html