From patchwork Sun Nov 5 20:11:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantinos Tsimpoukas X-Patchwork-Id: 10042417 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id F2A7760244 for ; Sun, 5 Nov 2017 20:11:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D762828FC8 for ; Sun, 5 Nov 2017 20:11:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAF2F29008; Sun, 5 Nov 2017 20:11:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E257B28FC8 for ; Sun, 5 Nov 2017 20:11:21 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 5F7EC26706F; Sun, 5 Nov 2017 21:11:19 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 2166A267070; Sun, 5 Nov 2017 21:11:17 +0100 (CET) Received: from mail-ot0-f193.google.com (mail-ot0-f193.google.com [74.125.82.193]) by alsa0.perex.cz (Postfix) with ESMTP id 76840266A0C for ; Sun, 5 Nov 2017 21:11:14 +0100 (CET) Received: by mail-ot0-f193.google.com with SMTP id c47so6690826otj.6 for ; Sun, 05 Nov 2017 12:11:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ZEgK5w4ew1+tXajwuesd/Qa63fOncm939qdRScruwR8=; b=iOncJL4+tnNVARmI+Pz+7KqK5C/uAhywtr8U8iB4/T/AG55Q4mlfqodGs37Eweqyqe K0v+fTbRzo+1cyShQPIUKjlAWUyYgpINeveYHPKfKY8t6By9B40h04VIR+n7Ex9eUhw9 gzLzROTlTt2d5/5eITXDAkvOIQTUDtjlDX9OEfcei1zwGfwOJhtbuTz4DQrwmaSPo379 iRmD2PPxClTK2xZ0sgbiBYcWcKUgLKlW5n6oS0+ILwu34CW+y5VWBhMW3IfQ68s7D3LG Gaa+8SDtQ0fSbcGyIledPzM/mBTK410K/Bfn7GnpDffyPHALRuvOOg+kKoWejHb+/r5x lW4Q== 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; bh=ZEgK5w4ew1+tXajwuesd/Qa63fOncm939qdRScruwR8=; b=ZX6xMNitBBXC+nd7wLj+/uqTo/gzCEEgxNmH0lTOEeWc1oM3rsIAagRgmqJTTrS5xv w/n4bLI8u7mOurFTYoAXRNqhgKBuFJ+2DzbapEybXRA2Dk62FEcICF3YO4Vl26pN1rLm BS7t4puiD3kEmp9zC59J6q+El34kcqsNnphD2F1F8//Q3FzDeLByNa0M9zbWCOYp4i3D DlMfXQAFe0S1V53rfBfZPtYfVpkXY+jV3E9TcnxKVNoIMgBGdRgu4nHAa7fA4MpsLm0W Ma+RKyu3ezHpWq7mMTvf0UCpm839kAUHceA/qmun7o05Xq20bpuOCtf1DbakBE4427ZJ nRHQ== X-Gm-Message-State: AJaThX67Yzmv900J1OkYMjZFEeDUMDSll2Pv1dLbZnNhyqIUzP2KnjLG 0MRDtXqQzeTCbWd5sbFoz1Q= X-Google-Smtp-Source: ABhQp+S4JsbwOsIA5BgqBXbl/2vNOC8EuxQ1BeFnWyATWMmBHxa+k3gYhM/92FEc9yiDsaMXYzEWPg== X-Received: by 10.157.52.71 with SMTP id v65mr2982134otb.469.1509912672666; Sun, 05 Nov 2017 12:11:12 -0800 (PST) Received: from localhost.localdomain (177-249-197-46-cable.cybercable.net.mx. [177.249.197.46]) by smtp.gmail.com with ESMTPSA id r184sm4700703oia.40.2017.11.05.12.11.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 05 Nov 2017 12:11:12 -0800 (PST) From: Konstantinos Tsimpoukas To: Konstantinos Tsimpoukas , alsa-devel@alsa-project.org Date: Sun, 5 Nov 2017 14:11:01 -0600 Message-Id: <1509912661-7070-1-git-send-email-kostaslinuxxx@gmail.com> X-Mailer: git-send-email 2.7.4 Cc: Takashi Iwai , linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Subject: [alsa-devel] [PATCH 1/1] ice1712: tiny patch defining i2c eeprom addr to header file X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Konstantinos Tsimpoukas --- sound/pci/ice1712/ice1712.c | 2 +- sound/pci/ice1712/ice1712.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/pci/ice1712/ice1712.c b/sound/pci/ice1712/ice1712.c index 0e66afa..f1fe497 100644 --- a/sound/pci/ice1712/ice1712.c +++ b/sound/pci/ice1712/ice1712.c @@ -2285,7 +2285,7 @@ static unsigned char snd_ice1712_read_i2c(struct snd_ice1712 *ice, static int snd_ice1712_read_eeprom(struct snd_ice1712 *ice, const char *modelname) { - int dev = 0xa0; /* EEPROM device address */ + int dev = ICE_I2C_EEPROM_ADDR; /* I2C EEPROM device address */ unsigned int i, size; struct snd_ice1712_card_info * const *tbl, *c; diff --git a/sound/pci/ice1712/ice1712.h b/sound/pci/ice1712/ice1712.h index 5cfba09..8ae8742 100644 --- a/sound/pci/ice1712/ice1712.h +++ b/sound/pci/ice1712/ice1712.h @@ -218,8 +218,9 @@ /* - * + * I2C EEPROM Address */ +#define ICE_I2C_EEPROM_ADDR 0xA0 struct snd_ice1712;