Received: by 2002:a05:7412:8598:b0:f9:33c2:5753 with SMTP id n24csp309309rdh; Mon, 18 Dec 2023 22:23:37 -0800 (PST) X-Google-Smtp-Source: AGHT+IFnIHr/nMHOLhDvMUNskdLRgWcBx9ue1MSLTBA5hyUQJg+DICFo7t/jQRxOOJVeWm62ytD1 X-Received: by 2002:a50:d65d:0:b0:553:617c:b02c with SMTP id c29-20020a50d65d000000b00553617cb02cmr735026edj.66.1702967016994; Mon, 18 Dec 2023 22:23:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702967016; cv=none; d=google.com; s=arc-20160816; b=mhBxIq6K5hiQg7o/LuHeOUFeUHN9tj6zNHMu5koqh+WFBI6WYc1/vaCltkR+Rb5YZm MQ8jx/oAYMWfNNqe7EO+ZP3md+lkOuL7VvnWA5tpQvQED/inhrA+68FlWtNKpwkmIVDF cqMDOiU4ByQRfp9iQiGJJDeIgFEcryEo3tsQA9LtokVA1X7ea44WFVIVYJ3djYYDE6Ao Oez48WKCYqb+Px9XeltnaKKCTls5Bv+JwdqYSckxRkH2VZqcM8lexsfwyTdoQIFgml51 PUh5dnXZfNdb6cbkG34GVLeO8o12XG3IhDYuuIWUoq1jaW62uD7D/LjfZIKzZbN+tZ2N DSIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=MJpSfJ1dvmmE5RJ34NhOa72WgMVQr4CGokT5UCK3ZUM=; fh=TtTp3C+WP/XpgOQ4lEzdYFODimOK5wF5JWIgr2IomOI=; b=LzkYiXKWdoKrvAzKq5uR1ALQFVeMi8I5uvR7aSskxWMg0pmSPm0/hHMfudJHhOBWHU Mdhda4DFCuxkUXBQVftdlifU7UnbP27o+D1/TANwt6S9X+hJRYqtaIWw2hEdK4tYDNM9 QKWtqMgVTFKGb09Z17UsWeYnKR5LD6h0AMcpzJeOkZn4TdqvQ5HbtOxFuDQomBYbkcIi g9pzoK0iwzKlwFqwR0oWpldGF2pjS+2sI7mNaU8SrzrFHwP2SuZgfOxuiOk94hEf4C/R eizkryTjsPutj5LXt/ERGWc/I9JYfLwV0WVVFrCLbybTVHg2wOSjITANzDVJyIESZ2mC kctQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bBRqQrQU; spf=pass (google.com: domain of linux-kernel+bounces-4745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id bx19-20020a0564020b5300b00552cac0ce9esi3650617edb.496.2023.12.18.22.23.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 22:23:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-4745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=bBRqQrQU; spf=pass (google.com: domain of linux-kernel+bounces-4745-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-4745-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id BE72E1F22C07 for ; Tue, 19 Dec 2023 06:23:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33D7979EA; Tue, 19 Dec 2023 06:23:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="bBRqQrQU" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f49.google.com (mail-wr1-f49.google.com [209.85.221.49]) (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 EE97ED2E6; Tue, 19 Dec 2023 06:23:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wr1-f49.google.com with SMTP id ffacd0b85a97d-3366ddd1eddso1472371f8f.0; Mon, 18 Dec 2023 22:23:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702967005; x=1703571805; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MJpSfJ1dvmmE5RJ34NhOa72WgMVQr4CGokT5UCK3ZUM=; b=bBRqQrQUePb5DeKH3WyahIg/JVknTbiII57R17rbgrVoB2+sthz9UsoXo//DL/NUZg V2DKxgmef5TN1hfwm5kwOttdyMTggwBNCRgll+v3D3Nv5kREnU7C7oqZdo3i1Yf153PO gTV0OCMl4Zy4L1v88H8zfSld2zoo7TjOnkUSA0K006px3AfoPwNincL2lr90lj0eiyEO GjdgQKKW/sGwr01+a7hqwe9Er+O2DQC26cX7eKLsgiY1A13w4aJo65bLgmEJdT5wzD1r /RQWNLhXf6oaWJcxjzoa+e0zQmMqCuPYD9sayCbdooLnz5LtBXZ3m5fZEtvnp3xLkJ2k h4EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702967005; x=1703571805; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MJpSfJ1dvmmE5RJ34NhOa72WgMVQr4CGokT5UCK3ZUM=; b=FMOLizMPMpvExs2Hjw7x/mxUnrWpt7+LW5GlUd5syU/5GgcysZXRNjCot5wGWpIwRe 9dOSYFcKh7gQJUUSEXpv1zuTM9MDgt8LGKvjXDtcvzkaehW+lfn7joQ/l5swUc5/5m25 clt5eMZA2iSLFwsnSXY6JnNnA524tM5iKJd6iN5mnAT+VXy8JPqf2fbKyeoRkPaUbuk+ eK+SkHOrYAa1aztaldWM6tgEewHwoRTCIpkJE7Ac3KdnRt3nGcNWTYZYe+67AmB7fxCy 19PsCLLtJLxGllF+M3ClfMrtvTbdzxa562eQ0jLHcYSKvxHikY6/4q1gIv0IEp1ztXYG VzfA== X-Gm-Message-State: AOJu0YwMX350I7Mz68bTwEtE59sZAQS97MUrA30VRDeZi2Jtbrgi0t6G OYN0P5M73tmpWZh/pbjj0cA= X-Received: by 2002:adf:fd45:0:b0:336:5499:c5f5 with SMTP id h5-20020adffd45000000b003365499c5f5mr2017669wrs.89.1702967004827; Mon, 18 Dec 2023 22:23:24 -0800 (PST) Received: from dreambig.dreambig.corp ([58.27.187.115]) by smtp.gmail.com with ESMTPSA id b12-20020a5d45cc000000b003365422e8b9sm10710991wrs.17.2023.12.18.22.23.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Dec 2023 22:23:24 -0800 (PST) From: Muhammad Muzammil X-Google-Original-From: Muhammad Muzammil To: robh+dt@kernel.org, frowand.list@gmail.com Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Muzammil Ashraf Subject: [PATCH] drivers: of: Fixed kernel doc warning Date: Tue, 19 Dec 2023 11:23:17 +0500 Message-Id: <20231219062317.17650-1-muzammil@dreambigsemi.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Muzammil Ashraf property.c:1220 : Fixed excess struct member definition warning property.c:444 : Fixed missing a blank line after declarations Signed-off-by: Muzammil Ashraf --- drivers/of/property.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/of/property.c b/drivers/of/property.c index afdaefbd03f6..641a40cf5cf3 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -441,6 +441,7 @@ int of_property_read_string(const struct device_node *np, const char *propname, const char **out_string) { const struct property *prop = of_find_property(np, propname, NULL); + if (!prop) return -EINVAL; if (!prop->length) @@ -1217,9 +1218,9 @@ static struct device_node *parse_##fname(struct device_node *np, \ * * @parse_prop: function name * parse_prop() finds the node corresponding to a supplier phandle - * @parse_prop.np: Pointer to device node holding supplier phandle property - * @parse_prop.prop_name: Name of property holding a phandle value - * @parse_prop.index: For properties holding a list of phandles, this is the + * parse_prop.np: Pointer to device node holding supplier phandle property + * parse_prop.prop_name: Name of property holding a phandle value + * parse_prop.index: For properties holding a list of phandles, this is the * index into the list * @optional: Describes whether a supplier is mandatory or not * @node_not_dev: The consumer node containing the property is never converted -- 2.27.0