Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1254706yba; Tue, 2 Apr 2019 05:38:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqx+jmX0NrLdf4tH9H5tF2UBzsqJyarOJcf1PN4VnS5zkoP7kR/TKathnIzPShEyQDEi8324 X-Received: by 2002:a63:c706:: with SMTP id n6mr32965030pgg.310.1554208739561; Tue, 02 Apr 2019 05:38:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554208739; cv=none; d=google.com; s=arc-20160816; b=SmMqpHBUiB5J6O0PKCRn+En/uaDyhfLuuaKf9WdrTsdtoo0a36uLJQJr5geN5U9AMa dyADRJb9dFsaQkEr8DzuhUGXeYr3w3xpBZrDDbYpAdRCeYpIuBTJlzc+gOlbkW56U2lN swGOVXUdKNq8xmG3GCFOnNSGSPxGpBbbyW8nwK4ZNlqbdFp1J8MREU5hK886affxp6Np JEKRzK96lCx5aI5pVrlR71nZ+1r7c01njqlV3j+YRS70IgEJe8NMzX84V4PHGtNaBb/0 oR7YOO7PH6JPP+kOoJJNO1tbp8wi0JeosEqvt/O+7rEEPVPrqb3JP5mKScojpy9j8qVb irYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:content-transfer-encoding:mime-version :message-id:date:subject:cc:from; bh=m0Yhf7dLwYQMZuyIsm9m43WayyXUoQ3uc+OIUwK7dbk=; b=bWymW7nDqhS+pdhK1R7JtApwY8PZFQGDb5vdvEDVX4p0WeDiyxascO5lHK7qhkthgL YMeD/xbZBARErK0FeZqYWWGJPlXPyTXpOyFomrnidTy+ZIrHf8lykaOxmmcJAAxSluiv wHgj1Pj1IYMuNKAx8fKSnoREH7C9Dy0DaS9G0aeRjVQFfCtyNaOHjqLH2fDZWOqlxKsB Fn2DzkMa5BtQzJKIsrFzGXf6qU7N+DoeSDwrRqt/MPR18uzI0bAqLUbq0cNPYuViuCH4 4P80KRIQKFZwC+REGraLhjP5Y3RMPft/zVJfsmJVaDlRCsaomrH4MxSeo8BVYbtd9gYY DCiQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hanoverdisplays.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l62si2731056pge.579.2019.04.02.05.38.44; Tue, 02 Apr 2019 05:38:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hanoverdisplays.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730798AbfDBMS2 (ORCPT + 99 others); Tue, 2 Apr 2019 08:18:28 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:53273 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfDBMS2 (ORCPT ); Tue, 2 Apr 2019 08:18:28 -0400 Received: by mail-wm1-f65.google.com with SMTP id q16so3133238wmj.3; Tue, 02 Apr 2019 05:18:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=m0Yhf7dLwYQMZuyIsm9m43WayyXUoQ3uc+OIUwK7dbk=; b=RdJqhpL+iitoRk4N8hVlc/TvISqG3GFegUUM+atjhkqHmi+FgnE5wcCoLP64+to9Rk ziZLyJE2KA38huIXxHGxiQBGKGE9CHyKLlhiTF9F9gu9rqM7O+U7L7r76ybcy6939DMt FwEQeBagKMWZmFA77qeVw2kcHnzSh1cXHXKt/sX700UPHcr9XS1H8W9OBTGBLVHYEYfg rR0tsQs6VHCf+9sSfZf8R8+Sfuq0HM7qaBa6+8ak6WZsY13VD0/0sLzQRnwDzPl5Kjyb DH+ufmiNuOhpxEp4Q0kwrgejOe2ijP+cTk77sKFWXo5THZPbFSx2sQijsY2f5Zr620rj 0/hw== X-Gm-Message-State: APjAAAV/95OQcyPZ4bR7G47FKzlQ0ITViw+qwB65Tkv2Br/gu2IGIGCZ gleTzepjmiVZGyVwMJekpExrP7CFGPo= X-Received: by 2002:a7b:c4d2:: with SMTP id g18mr3425970wmk.108.1554207506462; Tue, 02 Apr 2019 05:18:26 -0700 (PDT) Received: from localhost ([90.85.130.193]) by smtp.gmail.com with ESMTPSA id 61sm46715482wre.50.2019.04.02.05.18.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 02 Apr 2019 05:18:25 -0700 (PDT) From: Christina Quast Cc: trivial@kernel.org, Christina Quast , Jaroslav Kysela , Takashi Iwai , Jonathan Corbet , Takashi Sakamoto , alsa-devel@alsa-project.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: doc: my_chip has no element ioport Date: Tue, 2 Apr 2019 14:16:48 +0200 Message-Id: <20190402121649.26536-1-cquast@hanoverdisplays.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org chip->ioport is dereferenced in two places, but the struct is defined as follows: struct mychip { struct snd_card *card; struct pci_dev *pci; unsigned long port; int irq; }; Signed-off-by: Christina Quast --- Documentation/sound/kernel-api/writing-an-alsa-driver.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst index 6b154dbb02cc..132f5eb9b530 100644 --- a/Documentation/sound/kernel-api/writing-an-alsa-driver.rst +++ b/Documentation/sound/kernel-api/writing-an-alsa-driver.rst @@ -324,7 +324,7 @@ to details explained in the following section. strcpy(card->driver, "My Chip"); strcpy(card->shortname, "My Own Chip 123"); sprintf(card->longname, "%s at 0x%lx irq %i", - card->shortname, chip->ioport, chip->irq); + card->shortname, chip->port, chip->irq); /* (5) */ .... /* implemented later */ @@ -437,7 +437,7 @@ Since each component can be properly freed, the single strcpy(card->driver, "My Chip"); strcpy(card->shortname, "My Own Chip 123"); sprintf(card->longname, "%s at 0x%lx irq %i", - card->shortname, chip->ioport, chip->irq); + card->shortname, chip->port, chip->irq); The driver field holds the minimal ID string of the chip. This is used by alsa-lib's configurator, so keep it simple but unique. Even the -- 2.20.1