From owner-p4-projects@FreeBSD.ORG Tue Oct 3 00:17:53 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 3575F16A47C; Tue, 3 Oct 2006 00:17:53 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED0EA16A416 for ; Tue, 3 Oct 2006 00:17:52 +0000 (UTC) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BCBE343D46 for ; Tue, 3 Oct 2006 00:17:52 +0000 (GMT) (envelope-from imp@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k930Hqpe031039 for ; Tue, 3 Oct 2006 00:17:52 GMT (envelope-from imp@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k930HqU8031036 for perforce@freebsd.org; Tue, 3 Oct 2006 00:17:52 GMT (envelope-from imp@freebsd.org) Date: Tue, 3 Oct 2006 00:17:52 GMT Message-Id: <200610030017.k930HqU8031036@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to imp@freebsd.org using -f From: Warner Losh To: Perforce Change Reviews Cc: Subject: PERFORCE change 107132 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 00:17:53 -0000 http://perforce.freebsd.org/chv.cgi?CH=107132 Change 107132 by imp@imp_lighthouse on 2006/10/03 00:17:49 move function to more appropriate place. Affected files ... .. //depot/projects/arm/src/sys/dev/mmc/mmc.c#16 edit .. //depot/projects/arm/src/sys/dev/mmc/mmcbrvar.h#3 edit Differences ... ==== //depot/projects/arm/src/sys/dev/mmc/mmc.c#16 (text+ko) ==== @@ -156,12 +156,6 @@ return (0); } -static int -mmcbr_update_ios(device_t dev) -{ - return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev)); -} - static void mmc_rescan_cards(struct mmc_softc *sc) { ==== //depot/projects/arm/src/sys/dev/mmc/mmcbrvar.h#3 (text+ko) ==== @@ -29,6 +29,7 @@ #define DEV_MMC_MMCBRVAR_H #include +#include "mmcbr_if.h" enum mmcbr_device_ivars { MMCBR_IVAR_BUS_MODE, @@ -63,4 +64,10 @@ MMCBR_ACCESSOR(power_mode, POWER_MODE, int) MMCBR_ACCESSOR(vdd, VDD, int) +static int __inline +mmcbr_update_ios(device_t dev) +{ + return (MMCBR_UPDATE_IOS(device_get_parent(dev), dev)); +} + #endif /* DEV_MMC_MMCBRVAR_H */