Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2018544lqz; Tue, 2 Apr 2024 05:09:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFVdSF3z5gIWo+I2Dq1ZFyCMhdOWKxCw1Pjg4Vd0qqViyA7TYmosdlxFbxEKL1FFtPgEPEtIrXdjho+SvdQAYty6Lbzp7KlGIhNJrvxw== X-Google-Smtp-Source: AGHT+IGUgA/Gw7WsA3pvfuT1FeL7vb/f1UXgOknGpS90SPBCrDVchWh1kdojf1crPuIboUGw4avM X-Received: by 2002:a17:90a:6346:b0:29f:66e2:d2a6 with SMTP id v6-20020a17090a634600b0029f66e2d2a6mr10420475pjs.26.1712059773717; Tue, 02 Apr 2024 05:09:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712059773; cv=pass; d=google.com; s=arc-20160816; b=xTNIr140ksmnupiAta772pwTkrleBEj6bI6OG9SJ4G1WQtdaWAHi0MeA/XeUSgpoXq MV881IW5hTXIHzJnTfixWuqdVDhVDooJcfrLwOpctOkqGLZwFo8H5ED+waA/andwbN0w rlp2TU+n5HZAoFjPJsGDy6fEasOYbqHjMqd1yjJ7EGpf46LdZSO/pB3bVQEhRJnm3cFJ dO/gTRT2n0brC623ojq497zRFVnu173FwekWM24VQqe7F4/ARKxopzKQdD1f126YNlPq Vms4AG7ks1pdKoHqIQRdWO07G4OePj6Y5+m4VdjhRkBZ3RDZ0gTOhvVnb+yKfp5xIT6f rRpA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from:dkim-signature; bh=Opu1+fgnwfiqRAjomE33LCew5lDraMk9w2Ix7h0wG/Q=; fh=FwjJSNfh/42J9ZvAW3ZIhuYYzl5nePMz783/pq+u9EA=; b=Wejv663k47T/Eccnq0Z0iAOz/QwOVmqLLRXbTK+9C+NnlJ9UQ8Vg5ovFgiIVDKdpdR ka6O8A1smelzhLxiwKtgdoQRLY22vo5el2xqhZs+rKWVAnlfS4iLxuJbvZwqNVe7LRAf KwZNNr3AvcRS9jBG8a/FQLIjX79DVv3r761htGUsK/twk1opvthGrqCYnCUMdLqAJXHt t0MkOvwX2Po5J6FCBIePvjpQnZqi8sgpUMjgPdo1mDzAGa01WNDp1kIPocE+aIJQ7Xaj W/Nx15fywgcYFMyg8YOuNgC8JKPcw1GqQhxciTOe5xj2GPoYwlGz+wFd61wDTP+tYmxm WT3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FhzEDAYD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id lp15-20020a17090b4a8f00b002a26a9f6b4esi551216pjb.175.2024.04.02.05.09.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:09:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-127899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FhzEDAYD; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-127899-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-127899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 7B38B2828D8 for ; Tue, 2 Apr 2024 12:08:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5AA57F7EA; Tue, 2 Apr 2024 12:08:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="FhzEDAYD" Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C7EE777623 for ; Tue, 2 Apr 2024 12:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712059684; cv=none; b=Mw6vIL0aEdR1HnZXWybJ1ruP+QkgUuobEtDZ+D8eW6dQB1m9g25WIrVHngUqP33L9+kjL23UodOYzlC6sdBrHlHqrfPyVKKHbGmVFn2JijtAF4w4/HY16ZI5pjzu+0pW1j6xW7scPXgj/3qIY01zWyKnkUhwWTC0iJzgm9IJxsc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712059684; c=relaxed/simple; bh=itu5VhzRY7+Uox8ZWhW8LPb8PjDEzOtU9DaWueGgr6c=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=MurHjDpuRKlGYJptuix78p2oc1ISCWfw7OnG6n6J7ds3mX60BNy591WObBb//deIjezBLR4zciPRtLI7h1NwHpx6PsrxkG77wlkI6wbYMLxNVKJBat7ZIfCp/yFzRu3ARUgLmFTvirbEBlzpMmDdFrgrWr0pjet5lYNr8lzDbhw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=FhzEDAYD; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-a46ea03c2a5so923757666b.1 for ; Tue, 02 Apr 2024 05:08:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712059681; x=1712664481; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=Opu1+fgnwfiqRAjomE33LCew5lDraMk9w2Ix7h0wG/Q=; b=FhzEDAYDEtuODeHOwOybSx9TaRHqSwRwUM7VqtwFlmN9B6oL6ln3/1t0ooykinF4Qp U9Z9yhW8gXsSlw4Qv2s2v4UgbqdW1hpBSBrlHO79KUPkXVaRIcFKbwWcyTi72G15sQ4r Xfg7j+6YpJKE404bXjtqqlmcu92eDfwncaRIoYb2eczRw0/1kW1X9Hk0lrea37MLaLBq f0hCD44DmAuw+dCK0zUxOmCyLL+jlFN/HuDvTQH04Ne4omDw8Bgb6Dg15Us8THAV6Dsp iRzRiEgJQZGTfHQA+zgbmc0AVE+zEWyqigcSgAtYF/XJUNUblGZODjhwQRjBA5oXfusH 8ONA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712059681; x=1712664481; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Opu1+fgnwfiqRAjomE33LCew5lDraMk9w2Ix7h0wG/Q=; b=mbedFhnslbzAEJeUKTREMQ0vbP4+jXXRZf7nP7s2XQicrktr02TrSURrksfc3fPUBg peJ0wk384ByN2VQy5Yg9BNEEqC/rVetuzG23TiML7TyJjWpSUtB6CnBOuz5Ft4JIDS50 nmqCHPrlTxWUE/CQXsYC8UuiPPZMWywQ7RGyzJIu/UStxr9Fpm4cuPoSSShSQgGricl3 cNpbX464fec3bY8CJRvko1uw7o26rj9pDoc5FmMAEKLjQHJMJpa8N7c94apem5xnzNEd PxuwkzLw0aMesC3tjY7XCWT054y6G2NVC3LQaA63rae5IiFNET7/oxrIiuP9O5J8OpTs X74w== X-Forwarded-Encrypted: i=1; AJvYcCXHgSdt4NTrb0v8MalFJJXlBN/U6iNG5vHsDi+kMP/fFDhICo/Ddc7mWMn20RACJomXUQPJg8UfWhfKdeSoyBw7zaHU0w1QaANx8wxw X-Gm-Message-State: AOJu0YztJwV6oD3rBpm6wQxbw6Nzi5rp2ZwihPFTdSjXfRlJ1YbDJupt IYo48qMgCPU5U2bLV+ttk+JaK6wKpBmk82Nmlo/g1oH4NAsbet28XOvqzcKocJo= X-Received: by 2002:a17:907:7e9b:b0:a47:3afd:4739 with SMTP id qb27-20020a1709077e9b00b00a473afd4739mr15686749ejc.6.1712059681089; Tue, 02 Apr 2024 05:08:01 -0700 (PDT) Received: from [127.0.1.1] ([79.114.172.194]) by smtp.gmail.com with ESMTPSA id l13-20020a1709065a8d00b00a4df251a601sm6519384ejq.77.2024.04.02.05.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 05:08:00 -0700 (PDT) From: Abel Vesa Date: Tue, 02 Apr 2024 15:07:32 +0300 Subject: [PATCH v8 3/7] spmi: pmic-arb: Fix some compile warnings about members not being described Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240402-spmi-multi-master-support-v8-3-ce6f2d14a058@linaro.org> References: <20240402-spmi-multi-master-support-v8-0-ce6f2d14a058@linaro.org> In-Reply-To: <20240402-spmi-multi-master-support-v8-0-ce6f2d14a058@linaro.org> To: Stephen Boyd , Matthias Brugger , Bjorn Andersson , Konrad Dybcio , Dmitry Baryshkov , Neil Armstrong , AngeloGioacchino Del Regno , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Srini Kandagatla , Johan Hovold , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, Abel Vesa X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2422; i=abel.vesa@linaro.org; h=from:subject:message-id; bh=itu5VhzRY7+Uox8ZWhW8LPb8PjDEzOtU9DaWueGgr6c=; b=owEBbQKS/ZANAwAKARtfRMkAlRVWAcsmYgBmC/USt2OJhH/CwprexawX8WQiCTrUZ/JwoYHDt lhJSzZcFsmJAjMEAAEKAB0WIQRO8+4RTnqPKsqn0bgbX0TJAJUVVgUCZgv1EgAKCRAbX0TJAJUV VsBnEAC8IyeAcovEWVj5iC/wADmCZjSgb9pbAnqUPt70WMLSgJ4HRbEjWF36d6LGFaSjETGMI4A xOyjGogFEFo8l0vmThd4x4AKRTQTnx0bFyQImr/uQQa9gKWsEaMkmVPbSkt1B1tzmMPaiByOwfv HPxdZCWtH+V8te9gxZ0SSDwF+bSceX1ODUN1TRZWPvsubYKXQ5DqY2A8yTe19sHk8gPTgT/BsBm MM9IpNRw86t99t/5tLYjYCBb7t/tX2FcM7HHFb8y2VuoyrPJNeVhCefulUftkPcrRzeWK/zAhuR yJT8qFV5r1RR/cu1BS772cNY/BgARjlm1ro8D5DxsGx1rKqbTe3K3vcfmJ5p15Ab5kg+AavCX5z KNngO2/LBqk/8fyHfQ7CCUklV4BlBWFxgxBYYnUJvdLYNQ7k6hrZWjozlfNSJxh1wlSOmCAFkD3 JvcdP4Sil7lGTrtAgtr0F8mIz4d1f7i6By4DYXs03w/CADTsv1657RT9Dn0M9YGRxTYYFA82DmC tgRudjlugcxgFsepVgqEAzHVTrBTtP4BwdolnYLfU4Tgg7FCbmsfSIRYG8c8YQnoj12617TH7Y8 uHJTvirYpo6xbCLiirhTAH6xA3F/HACb6Fnr0O5Uo3bosdFrkRb2VQDMOmL7+qt5v2CRySQrcUd ZNnPnz120EcwJKA== X-Developer-Key: i=abel.vesa@linaro.org; a=openpgp; fpr=6AFF162D57F4223A8770EF5AF7BF214136F41FAE Fix the following compile warnings: warning: Function parameter or struct member 'core' not described in 'spmi_pmic_arb' warning: Function parameter or struct member 'core_size' not described in 'spmi_pmic_arb' warning: Function parameter or struct member 'mapping_table_valid' not described in 'spmi_pmic_arb' warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_read_data' warning: Function parameter or struct member 'pmic_arb' not described in 'pmic_arb_write_data' Signed-off-by: Abel Vesa --- drivers/spmi/spmi-pmic-arb.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/spmi/spmi-pmic-arb.c b/drivers/spmi/spmi-pmic-arb.c index 9ed1180fe31f..704fd4506971 100644 --- a/drivers/spmi/spmi-pmic-arb.c +++ b/drivers/spmi/spmi-pmic-arb.c @@ -132,6 +132,8 @@ struct apid_data { * @wr_base: on v1 "core", on v2 "chnls" register base off DT. * @intr: address of the SPMI interrupt control registers. * @cnfg: address of the PMIC Arbiter configuration registers. + * @core: core register base for v2 and above only (see above) + * @core_size: core register base size * @lock: lock to synchronize accesses. * @channel: execution environment channel to use for accesses. * @irq: PMIC ARB interrupt. @@ -144,6 +146,7 @@ struct apid_data { * @apid_count: on v5 and v7: number of APIDs associated with the * particular SPMI bus instance * @mapping_table: in-memory copy of PPID -> APID mapping table. + * @mapping_table_valid:bitmap containing valid-only periphs * @domain: irq domain object for PMIC IRQ domain * @spmic: SPMI controller object * @ver_ops: version dependent operations. @@ -232,6 +235,7 @@ static inline void pmic_arb_set_rd_cmd(struct spmi_pmic_arb *pmic_arb, /** * pmic_arb_read_data: reads pmic-arb's register and copy 1..4 bytes to buf + * @pmic_arb: the SPMI PMIC arbiter * @bc: byte count -1. range: 0..3 * @reg: register's address * @buf: output parameter, length must be bc + 1 @@ -246,6 +250,7 @@ pmic_arb_read_data(struct spmi_pmic_arb *pmic_arb, u8 *buf, u32 reg, u8 bc) /** * pmic_arb_write_data: write 1..4 bytes from buf to pmic-arb's register + * @pmic_arb: the SPMI PMIC arbiter * @bc: byte-count -1. range: 0..3. * @reg: register's address. * @buf: buffer to write. length must be bc + 1. -- 2.34.1