Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3854486ybl; Mon, 12 Aug 2019 07:29:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqzgKqDiU1IYLZNndh7Y1uOLigIneGPGyZeChviqyYbVltJIxqCNooR/zBPBVY36xn7iKqUq X-Received: by 2002:a17:902:45:: with SMTP id 63mr16579217pla.264.1565620193660; Mon, 12 Aug 2019 07:29:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565620193; cv=none; d=google.com; s=arc-20160816; b=iNW3pGFOMtiC3G4IpF+5JexSRlIrCKynFRN5Kwe7UIcHqFaympTwUGCyzIUVM8oEjE GCmKbIrW4POQIPmuKM4oi9tcLSO+oN23wl66IKbVyzo/55HxuIDAqpBGSWOfuqPvRLug cAnoRoMjfqjBuqiDztIpT6fYgkkF9eHg4iOglXWDmdwzTiPGfRI4Bnbl/Gx6G2Spi7te 6O8wje0aTga5L1bo9KnfMnWnP60NSPzsY+w5NvJAS4Pf/nSi4xLxKcNn/6xWl0zTeMLq c2JXz74bJ7ry+8OEvw5iNxTltdf+AhbfhgYwJEqczT5TFxKcL5gxSe57bgo6B52Y/mca 5FoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=iB0JWM7h1gxHw3EITq7Z+ghm7p6Q9nTkPir7Y/G4NH8=; b=k64l3O6aRM941O5ZLpb57wuC0W2m4uGpzjwSPh+Lt9+NrJybNRTodPmwOIpK0O2Wjk 3bJYzV+/G5VdtlMBKltUFNPmxbZvxCuktJFfh/h6MPfX2u0LgV5ESNYFcDrH1CuNwKll vCPOF+EudtSmuSFnzpjAUp5BL+GomwRkspBS/AF1D6B0MPnoSvACDgebY2H5VuphxaFg bW3d0M5/HS91oy+RHF/e3+cQqKteyKqzOQvlsg/BYueecjimMuyYXCP2CUseIzn2OQW+ Ba75/CoOPeSQkTZTU+GNzbTLMqiZRHZ278I2GkNrWrWvu792jAvONhFKidBKer7dHYoc G5+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=TZc9ggBo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p35si62841892pgb.484.2019.08.12.07.29.38; Mon, 12 Aug 2019 07:29:53 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=TZc9ggBo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727621AbfHLO1e (ORCPT + 99 others); Mon, 12 Aug 2019 10:27:34 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:36756 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726530AbfHLO1e (ORCPT ); Mon, 12 Aug 2019 10:27:34 -0400 Received: by mail-ot1-f68.google.com with SMTP id k18so27299172otr.3 for ; Mon, 12 Aug 2019 07:27:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=iB0JWM7h1gxHw3EITq7Z+ghm7p6Q9nTkPir7Y/G4NH8=; b=TZc9ggBowRmmtGuC8ttoadFm5vz2RNC35ZL0jQEW8J4nIC/wah+7aT1ZVTL8JXEnt9 Pfu07LhqpOmZZ46/ccWdmiRlXjW42Izow1P9kDlGqDd7Hd2czIF2QlOF2N28AcnYdtkX JDn/O9InIP/aYT4ciYOi5C+4hFHdJM1sgwXJs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iB0JWM7h1gxHw3EITq7Z+ghm7p6Q9nTkPir7Y/G4NH8=; b=sWiaSge2J1mhRKXgz+5B7yqK4NQXhxb1o2NK0l/i+Dgw2oLjmmrvbacEliUvuqRcJQ Q9ZK/XqaVsUp3rqM+oQveSrrKMM0piWoBsS+A+BCf8Z8uOTy15f/a8OKrmvYVA+y/34C hkI5IfwIRWeIFfmYil0u5xdwJjnxlM/lZK1/BNeMTLQ8NZoqOIE6W6+x7StfoyL7ZqZ0 bL9qaWq6YVB8FJkTmvkrbJQVZ4pmPh6bjogH56eJ7mYmL8rQUkolMthyEMjjTsnPsOKs J58DfApZYIXQ757sZCfwOOaoAf/V5SsOSlj0c/rLIAU1WPb/+4JFiYIrA0mvfzO1jtNg 5w6g== X-Gm-Message-State: APjAAAU4LpLTaNZTC9pLNq2hg1EnNNw+nZqBcHT3gbMtB9x1GbtaJWzn gRuydI0HgrWtf0RKjquP7qLIGQ== X-Received: by 2002:a6b:730f:: with SMTP id e15mr33995089ioh.74.1565620053420; Mon, 12 Aug 2019 07:27:33 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id d6sm20462220iod.17.2019.08.12.07.27.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Aug 2019 07:27:32 -0700 (PDT) Subject: Re: [PATCH 1/3] media: vimc: move private defines to a common header To: Laurent Pinchart Cc: helen.koike@collabora.com, =?UTF-8?Q?Andr=c3=a9_Almeida?= , mchehab@kernel.org, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, "skh >> Shuah Khan" References: <142cc5a6a10f75ed97de8b2d9b1e73b034a88b2f.1565386363.git.skhan@linuxfoundation.org> <20190810141432.GA30451@pendragon.ideasonboard.com> <20190812142447.GF5006@pendragon.ideasonboard.com> From: Shuah Khan Message-ID: <8e5206fe-240e-e5d3-c675-255aa0df7d57@linuxfoundation.org> Date: Mon, 12 Aug 2019 08:27:32 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190812142447.GF5006@pendragon.ideasonboard.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/12/19 8:24 AM, Laurent Pinchart wrote: > Hi Shua, > > On Mon, Aug 12, 2019 at 08:19:27AM -0600, Shuah Khan wrote: >> On 8/10/19 8:14 AM, Laurent Pinchart wrote: >>> On Fri, Aug 09, 2019 at 03:45:41PM -0600, Shuah Khan wrote: >>>> In preparation for collapsing the component driver structure into >>>> a monolith, move private device structure defines to a new common >>>> header file. >>> >>> Apart from the vimc_device structure, this doesn't seem to be needed. >>> I'd rather keep each structure private to the .c file that handles it, >>> and only share vimc_device globally. >> >> Right. I initially thought that I needed these global. Once I completed >> the patches without needing these as global, I overlooked updating the >> patches. >> >> I will take care of that. Any thoughts on vimc.h vs. adding vimc_device >> struct to existing vimc-common.h >> >> As I explained to Helen in response to her comment about: >> >> "My thinking is that vimc-common.h is common for all the subdevs and >> putting vimc-core defines and structures it shares it with the subdev >> files can be in a separate file. >> >> It is more of design choice to keep structures and defined organized. >> Originally I was thinking all the subdev device structires need to be >> global, and my patch set I sent out as such doesn't need that. I just >> overlooked that when I sent the patches out. >> >> This reduces the number of things that need to be common, I don't really >> have any strong reasons for either choice of adding common defines to >> vimc-common.h vs vimc.h - maybe with a slight tilt towards vimc.h" > > The vimc_device structure fits nicely in vimc-common.h in my opinion, as > it's used by every component. I don't care much either way. > Sounds good to me. thanks, -- Shuah