From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760589AbcKDIGK (ORCPT ); Fri, 4 Nov 2016 04:06:10 -0400 Received: from lb1-smtp-cloud3.xs4all.net ([194.109.24.22]:57665 "EHLO lb1-smtp-cloud3.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760557AbcKDIGF (ORCPT ); Fri, 4 Nov 2016 04:06:05 -0400 Subject: Re: [PATCH 17/34] [media] DaVinci-VPFE-Capture: Improve another size determination in vpfe_enum_input() To: SF Markus Elfring , linux-media@vger.kernel.org References: <88b3de4c-5f3f-9f70-736b-039dca6b8a2e@users.sourceforge.net> <6a3a4a79-d428-f5d9-87e0-97fd91b75c2a@users.sourceforge.net> Cc: Hans Verkuil , "Lad, Prabhakar" , Mauro Carvalho Chehab , LKML , kernel-janitors@vger.kernel.org From: Hans Verkuil Message-ID: <3c76f5d0-4469-01a4-3a7c-49401aeb84b7@xs4all.nl> Date: Fri, 4 Nov 2016 09:06:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <6a3a4a79-d428-f5d9-87e0-97fd91b75c2a@users.sourceforge.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/11/16 22:05, SF Markus Elfring wrote: >>> @@ -1091,7 +1091,7 @@ static int vpfe_enum_input(struct file *file, void *priv, >>> return -EINVAL; >>> } >>> sdinfo = &vpfe_dev->cfg->sub_devs[subdev]; >>> - memcpy(inp, &sdinfo->inputs[index], sizeof(struct v4l2_input)); >>> + memcpy(inp, &sdinfo->inputs[index], sizeof(*inp)); >> >> If I am not mistaken this can be written as: >> >> *inp = sdinfo->inputs[index]; >> >> Much better. > > At which position would you like to integrate a second approach for such a change > from this patch series? > > * Do you expect me to send a "V2" for the whole series? No, just for the patches I commented upon. > > * Will an update step be appropriate if I would rebase it on other > recently accepted suggestions? You can base it on https://git.linuxtv.org/hverkuil/media_tree.git/log/?h=for-v4.10a That branch has all your other patches of this series merged and is part of a pull request I posted yesterday. Hans > > Regards, > Markus >