From patchwork Fri Jan 29 16:05:31 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartlomiej Zolnierkiewicz X-Patchwork-Id: 43940 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id D3347B7D2A for ; Sat, 30 Jan 2010 03:06:41 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754203Ab0A2QFr (ORCPT ); Fri, 29 Jan 2010 11:05:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754314Ab0A2QFq (ORCPT ); Fri, 29 Jan 2010 11:05:46 -0500 Received: from mail-fx0-f220.google.com ([209.85.220.220]:53041 "EHLO mail-fx0-f220.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754203Ab0A2QFn (ORCPT ); Fri, 29 Jan 2010 11:05:43 -0500 Received: by mail-fx0-f220.google.com with SMTP id 20so2015120fxm.21 for ; Fri, 29 Jan 2010 08:05:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=tHHI4IyTsm/pRjXy88P/UrnXvbk8bNLEgTo9bbNC654=; b=U0pdSlzEHfVcl0Mn38cHoK0GNB7hl52W64fpvtDlo4v4FDOPMLzAReTKeroQ/cmkK4 GbARruRLiEf6WmQODqstyutVx+TAw7nWl1omYsrIxR1ebgT5RyNr2M9XCmzvo8YHWyEp f7Fpwd+5FoEMVrzw01rk3NDW0jtQSMWMo9VI4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=HhvFr0ZT7ZAapyTCxsfoPtmMdzCoEIUoB8XQLXP+W6SE1Rf4vd0mPCl/QbWzeV3wmt ltdIwUxuEWBP7cMXmdhBly8AZ291dGm+zeOZuo5LgumolGoEDRB0BJGRZFDOf3vGTgUW hqFuL7r1ZdvMQ1/m7srpnS7BEJslcwwdRX9Kg= Received: by 10.223.75.66 with SMTP id x2mr977400faj.7.1264781138434; Fri, 29 Jan 2010 08:05:38 -0800 (PST) Received: from ?127.0.0.1? (chello089079027028.chello.pl [89.79.27.28]) by mx.google.com with ESMTPS id 13sm552253fxm.5.2010.01.29.08.05.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Jan 2010 08:05:38 -0800 (PST) From: Bartlomiej Zolnierkiewicz To: linux-ide@vger.kernel.org Cc: Bartlomiej Zolnierkiewicz , linux-kernel@vger.kernel.org Date: Fri, 29 Jan 2010 17:05:31 +0100 Message-Id: <20100129160531.21495.79268.sendpatchset@localhost> In-Reply-To: <20100129160308.21495.14120.sendpatchset@localhost> References: <20100129160308.21495.14120.sendpatchset@localhost> Subject: [PATCH 22/68] ide: add drive->devno field Sender: linux-ide-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org From: Bartlomiej Zolnierkiewicz Subject: [PATCH] ide: add drive->devno field Add devno field to ide_drive_t matching devno field used in struct ata_device. Signed-off-by: Bartlomiej Zolnierkiewicz --- drivers/ide/ide-probe.c | 1 + include/linux/ide.h | 1 + 2 files changed, 2 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Index: b/drivers/ide/ide-probe.c =================================================================== --- a/drivers/ide/ide-probe.c +++ b/drivers/ide/ide-probe.c @@ -1033,6 +1033,7 @@ static void ide_port_init_devices(ide_hw ide_port_for_each_dev(i, drive, hwif) { drive->dn = i + hwif->channel * 2; + drive->devno = i; if (hwif->host_flags & IDE_HFLAG_IO_32BIT) drive->io_32bit = 1; Index: b/include/linux/ide.h =================================================================== --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -518,6 +518,7 @@ struct ide_drive_s { u8 pio_mode; /* for ->set_pio_mode _only_ */ u8 dma_mode; /* for ->dma_pio_mode _only_ */ u8 dn; /* now wide spread use */ + u8 devno; /* 0 or 1 */ u8 acoustic; /* acoustic management */ u8 media; /* disk, cdrom, tape, floppy, ... */ u8 ready_stat; /* min status value for drive ready */