Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp863880rwr; Wed, 3 May 2023 07:12:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4xrbmCbt5vO7b1whX4MQ9l2+5/C4r1dTZgVdbbQDUhvF16z+2+ypiLzSkAxYt4U0QJUy73 X-Received: by 2002:aca:d88b:0:b0:38e:52a1:4e2 with SMTP id p133-20020acad88b000000b0038e52a104e2mr2407378oig.5.1683123157815; Wed, 03 May 2023 07:12:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683123157; cv=none; d=google.com; s=arc-20160816; b=Ykl+VGKHqMZtla3LA04GMIRV+lfHHjDEGb8oYaTCOv8Iw2ZeWxJ72pPDGTX7DQmbEm hx2Gv7vVHa2tlqgGml7JAJ+GgDCDAPKVLyJNAUBSiprnaKdDs7PV9DhXcXIxd7VaUZBa BO5MJM7RPMf5akH1FXBm3FGe27dzoN8xdi9wl5adiOqbiNFc0XXRpbTFNgr8UE79neUA gAXdz2NOxzU/uJ3mCvfnO20TWyXG7ZBeZjdQ9bPkVUmUQplUx93qdpSS0RnA/oL7XVb5 iotY0x7BnmIxtOOkdHNs0Aox0eXVIzO8KqhZNWDusd56pFJGmqb8k+mHQhToqQQ8LIVm yRPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=9xUQbiTykYAvIdK6HEBeDPCbi8CS8G1uFcYtsrWp+q4=; b=M7GzTWEQ7htl03pZDDvRxfderuQ+BWacbyG9n7ZWMLy0NwxD4DvMCUVJgklOLFGCQ+ QCtd2ZDBpqjcVSHSqdPclTWGlR3pKj9OQElpET1zyg9Lv2MyTIbvEP7R0pFJdaO6kcMx gPejMN7eFmN9aTsxSpSPkNTD3Xv8arL0E010sA+ifEJ/ei6axjMFiV+HFc17IbTrMvQ/ ocoYkd7ggir6UeJTB+nh7cVXV5it8xbTz1enmuElIpcSvXzYZv3ChpaMdK8g8tlAzYDb Lh1AJWhhbULBMUDaltpVEsLTc+zbapgmmH/mptZioJ5IrLPgvSrU4gJiFXVtIwbKn/Tq iofQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="boNlRGA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t34-20020a05680815a200b0038b5a6e061bsi975992oiw.215.2023.05.03.07.12.24; Wed, 03 May 2023 07:12:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="boNlRGA/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230088AbjECNyf (ORCPT + 99 others); Wed, 3 May 2023 09:54:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59386 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230036AbjECNyd (ORCPT ); Wed, 3 May 2023 09:54:33 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 217DF59D1; Wed, 3 May 2023 06:54:28 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-74e13e46cb9so231184285a.1; Wed, 03 May 2023 06:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683122067; x=1685714067; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=9xUQbiTykYAvIdK6HEBeDPCbi8CS8G1uFcYtsrWp+q4=; b=boNlRGA/cEF9KFonM+yRy0NGrsx4qeiT++wfyKSTFofkB0BIUqq5VY4iTL2FzvJpAH 56t+icdIn9V8tDwJy5dylefB/J+UpeyFHMcNJ649CIW7U9pu/zA8jMwVq+VlqSC4yHnH WtviHfncvFc8mJk/krSb/36aTcbmb9Z2K+pkv5SErREB7fz4gX68fHUxOuY27kjYAkzv dWO76V3ZyK+vwnBNchATPp+H5pZKES8uy3aXCin32usV3o0kXitug3eUlCG459RYuhqB 4LUuRNdUjaJ6neM+hbkAu/2h4fqwGPJR0qzl6FoCjdzL0ffufh9Wmq5DnRC50DNNc+uD v77w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683122067; x=1685714067; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9xUQbiTykYAvIdK6HEBeDPCbi8CS8G1uFcYtsrWp+q4=; b=iHoQ2JXZPKg2LBkvo2qKTdfzPz1/kSSengYZie9gEKDHt/KKQXnAb4OwR5sfV+pc1g 36J+/LH0C7SWuEUlrTURLbOgu+z6ecOUSXlAReSzM6biJDC7dv4sCyFxl9xNY1QtFO40 wAv7gDWrNjmrTW4j+Pzvc4yjsfC3bUTH42jbFyPQR8U2T7dajEQPUIEXlpY+7hq+bqWk CFrXiRuDD7+aXR7dvHFd3SjXJiKFlHbbow/9O1iL3ffY3Y47cfDhXiPTOd7F+tZUtHe7 sfaic/x9PVhatcbS7OdTqDbUJGREwVc41Wxi+m6fOsyF/ctvN3yEQ9UEQeh4H2S7FsGz dW6g== X-Gm-Message-State: AC+VfDxzJwFnMGjZ3JzE0OAQ4FsLkvoBIJjb0FHKNSWmuB+9gdFqJj/1 c5Gw84PUcVYjXREcRzElcyn+DbfJOe5cT/Bw0zM= X-Received: by 2002:a05:6214:2409:b0:605:648b:2adc with SMTP id fv9-20020a056214240900b00605648b2adcmr11265824qvb.19.1683122067145; Wed, 03 May 2023 06:54:27 -0700 (PDT) MIME-Version: 1.0 References: <1683092380-29551-1-git-send-email-quic_rohiagar@quicinc.com> <1683092380-29551-3-git-send-email-quic_rohiagar@quicinc.com> <20a45e1e-6e62-9940-33d8-af7bad02b68d@quicinc.com> In-Reply-To: <20a45e1e-6e62-9940-33d8-af7bad02b68d@quicinc.com> From: Andy Shevchenko Date: Wed, 3 May 2023 16:53:50 +0300 Message-ID: Subject: Re: [PATCH v5 2/3] pinctrl: qcom: Refactor target specific pinctrl driver To: Rohit Agarwal Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, linus.walleij@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, richardcochran@gmail.com, manivannan.sadhasivam@linaro.org, linux-arm-msm@vger.kernel.org, linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 3, 2023 at 2:14=E2=80=AFPM Rohit Agarwal wrote: > On 5/3/2023 3:11 PM, Andy Shevchenko wrote: > > On Wed, May 3, 2023 at 8:39=E2=80=AFAM Rohit Agarwal wrote: ... > >> /** > >> * struct msm_function - a pinmux function > >> - * @name: Name of the pinmux function. > >> - * @groups: List of pingroups for this function. > >> - * @ngroups: Number of entries in @groups. > >> + * @func: Generic data of the pin function (name and groups of pins) > >> */ > >> struct msm_function { > >> - const char *name; > >> - const char * const *groups; > >> - unsigned ngroups; > >> + struct pinfunction func; > >> }; > > But why? Just kill the entire structure. > Got it. Can we have a typedef for pinfunction to msm_function in the msm > header file? But why? You can replace the type everywhere it needs to be replaced. I can't expect many lines to change. Also consider splitting struct pingroup change out of this. We will focus only on the struct pinfunction change and less code to review. --=20 With Best Regards, Andy Shevchenko