Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1079723pxb; Thu, 4 Mar 2021 02:43:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBzoC9rSCVLdw6p9O/PYX06m7aLr9lftpqTbq4WJoJl51MHDb96bUKxZ/Gne7ADoqI7Nvq X-Received: by 2002:a17:906:584e:: with SMTP id h14mr3573779ejs.332.1614854595236; Thu, 04 Mar 2021 02:43:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614854595; cv=none; d=google.com; s=arc-20160816; b=QCQ+DNhaZfZEB3HtTsfFvUZe7wdIUAY+aWWAQNdZf0Op8j+rSvpdG7ButxWaHWyp3x g8YZZmz9DYUy0i4AQO8yhXrhT16fmq0ow6BVS3olfa0DFdxN47eCXoJVkR+TR2iev+vX vdNXmwdPaieqFBSji4qEQHG9HIZQzwKqXPypnIVs9XEXEyaCGneaws3kHrWhLHzcGo0n I2rxS3bIlX7ItDs8TbXrqgDmt2dcp5def2QHoFqjCqtQp+v9AxjDMSmk4ILG9fviRoLM 702S8ZzGeVAsukoaTPau8PovXzagfNBo2Vi6VDm1fAOq300aUzKu9Gzh7ZiKWKgOB8nW siFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=C02zO0rn4Jwqx76+c76H+ldlEMExfpcfrCpPPE5llro=; b=p/f+KYMy3YPHMq0N6qSil8EbvHniNk5EoHoiD71FIuXp8ADyXAQLsWVZvyw/Kp2HSU wvcbSIZ62c9L9lCH48PRXUzzdIE1q20NtpU5VchbqogUYI4kFEnu8d3AvjNxs4701svn jRUnPnoQmxsy/4W+v2FuXW9nCjTTcRquLnSTS/jXVWLOqUVac0bC2eaA+ZFAm47YBW0U RuyWog1QU/3sszKzG7CNITD2W9oxxvyMOsUp+1EA0vFGq/WYO/yGBIx5vjh8bZzcixls Fsw0ynRPyAU+pQYAKOxzEUuLOMPiZJj9iHjb+JldpGG0zrBXdKRjo4YxRd5cqQA9o48O jYLg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si1066034ejr.164.2021.03.04.02.42.52; Thu, 04 Mar 2021 02:43:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385483AbhCCRTy (ORCPT + 99 others); Wed, 3 Mar 2021 12:19:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1383006AbhCCNjg (ORCPT ); Wed, 3 Mar 2021 08:39:36 -0500 Received: from baptiste.telenet-ops.be (baptiste.telenet-ops.be [IPv6:2a02:1800:120:4::f00:13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D97EC061223 for ; Wed, 3 Mar 2021 05:38:50 -0800 (PST) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:cd47:42a6:c822:e50b]) by baptiste.telenet-ops.be with bizsmtp id bpen2400X4huzR801penuR; Wed, 03 Mar 2021 14:38:48 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1lHRiB-004Q0k-FE; Wed, 03 Mar 2021 14:38:47 +0100 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1lHRiA-00GWpZ-TS; Wed, 03 Mar 2021 14:38:46 +0100 From: Geert Uytterhoeven To: Jonathan Corbet , Greg Kroah-Hartman , "Rafael J . Wysocki" Cc: linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/2] docs: driver-model: device: Add helper macro examples Date: Wed, 3 Mar 2021 14:38:43 +0100 Message-Id: <20210303133845.3939403-1-geert+renesas@glider.be> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jon, Greg, Rafael, The DEVICE_ATTR_* and ATTRIBUTE_GROUPS() helper macros have existed for more than a decade, but are still not mentioned in the driver-model device documentation. Hence this patch series adds them, including examples, to the documentation. Thanks for your comments! Geert Uytterhoeven (2): docs: driver-model: device: Add DEVICE_ATTR_{RO,RW} examples docs: driver-model: device: Add ATTRIBUTE_GROUPS() example .../driver-api/driver-model/device.rst | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) -- 2.25.1 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds