From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3EAB0C352A4 for ; Thu, 6 Feb 2020 15:11:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 138F920838 for ; Thu, 6 Feb 2020 15:11:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581001907; bh=ITZnQSjVF+J3sZhDiheXjF8laYFc4800Ufb4PpAwlYY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WjeXgzndksQp02jyg+gEThXluH9ikeNEVIQSe8bwyOLzbZcEDhm5dWotURUCSR5q0 Z7Ec4dG1TNqcxiTlMnoxtEemC4px+a7d3PcoKDDlG994Oj7CqNk32p3YhZNLDI30i/ WFCvypF1wOabG+rgRZqLcDDpldbO9rKFj6MBIMuY= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbgBFPLn (ORCPT ); Thu, 6 Feb 2020 10:11:43 -0500 Received: from bombadil.infradead.org ([198.137.202.133]:37516 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbgBFPLm (ORCPT ); Thu, 6 Feb 2020 10:11:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=CioumjlBTN7A4qdpnR3TkJBeJEN6B6nUp4WKwViYp3U=; b=kyncIojBk2ah8wBMfIp043g71/ J65/5kOaaab7w2rgYJiVMuFy2aAodAIqDmkA9wd9Z1JQfhhtex23wteGi+IVYCfOKGj2iuGxt1jzx Rqbcy5vDi8Gn51UOQm2oIvOxMUYwjHr31BWnLyd5dQupyHUUhWpS3UPYLom2Nvqo7RC311sAKysYk aQmDqd5hxertDkCWHD/kZjMQBNIq5lvrthgtVbSmTW2joDovIs3f+nBccwPOeKkaXAFCjLp0nQ+eU aPsQeS6sKENu0U03MVuvvAtUAWpq9pRJeoimrEghoyoG/7OzVYiQI/4Vg9OmoYM+V1ZIo28olmR5Q ia6S6D2w==; Received: from [179.95.15.160] (helo=bombadil.infradead.org) by bombadil.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1iziod-000438-Eo; Thu, 06 Feb 2020 15:11:42 +0000 Received: from mchehab by bombadil.infradead.org with local (Exim 4.92.3) (envelope-from ) id 1izioV-002oNG-Uh; Thu, 06 Feb 2020 16:11:31 +0100 From: Mauro Carvalho Chehab To: Linux Media Mailing List Cc: Mauro Carvalho Chehab , Mauro Carvalho Chehab , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH 07/11] docs: misc-devices/pci-endpoint-test.txt: convert to ReST Date: Thu, 6 Feb 2020 16:11:26 +0100 Message-Id: X-Mailer: git-send-email 2.24.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org - use title markups; - mark literal blocks. Signed-off-by: Mauro Carvalho Chehab --- .../{ad525x_dpot.txt => ad525x_dpot.rst} | 24 +++++++++---------- Documentation/misc-devices/index.rst | 1 + 2 files changed, 13 insertions(+), 12 deletions(-) rename Documentation/misc-devices/{ad525x_dpot.txt => ad525x_dpot.rst} (85%) diff --git a/Documentation/misc-devices/ad525x_dpot.txt b/Documentation/misc-devices/ad525x_dpot.rst similarity index 85% rename from Documentation/misc-devices/ad525x_dpot.txt rename to Documentation/misc-devices/ad525x_dpot.rst index 0c9413b1cbf3..6483ec254520 100644 --- a/Documentation/misc-devices/ad525x_dpot.txt +++ b/Documentation/misc-devices/ad525x_dpot.rst @@ -1,6 +1,8 @@ ---------------------------------- - AD525x Digital Potentiometers ---------------------------------- +.. SPDX-License-Identifier: GPL-2.0 + +============================= +AD525x Digital Potentiometers +============================= The ad525x_dpot driver exports a simple sysfs interface. This allows you to work with the immediate resistance settings as well as update the saved startup @@ -8,9 +10,8 @@ settings. Access to the factory programmed tolerance is also provided, but interpretation of this settings is required by the end application according to the specific part in use. ---------- - Files ---------- +Files +===== Each dpot device will have a set of eeprom, rdac, and tolerance files. How many depends on the actual part you have, as will the range of allowed values. @@ -24,23 +25,22 @@ and may vary greatly on a part-by-part basis. For exact interpretation of this field, please consult the datasheet for your part. This is presented as a hex file for easier parsing. ------------ - Example ------------ +Example +======= Locate the device in your sysfs tree. This is probably easiest by going into -the common i2c directory and locating the device by the i2c slave address. +the common i2c directory and locating the device by the i2c slave address:: # ls /sys/bus/i2c/devices/ 0-0022 0-0027 0-002f So assuming the device in question is on the first i2c bus and has the slave -address of 0x2f, we descend (unrelated sysfs entries have been trimmed). +address of 0x2f, we descend (unrelated sysfs entries have been trimmed):: # ls /sys/bus/i2c/devices/0-002f/ eeprom0 rdac0 tolerance0 -You can use simple reads/writes to access these files: +You can use simple reads/writes to access these files:: # cd /sys/bus/i2c/devices/0-002f/ diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices/index.rst index 2d454b413aef..005547c1ad5d 100644 --- a/Documentation/misc-devices/index.rst +++ b/Documentation/misc-devices/index.rst @@ -14,6 +14,7 @@ fit into other categories. .. toctree:: :maxdepth: 2 + ad525x_dpot eeprom ibmvmc ics932s401 -- 2.24.1