Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756001AbbLAJtL (ORCPT ); Tue, 1 Dec 2015 04:49:11 -0500 Received: from arroyo.ext.ti.com ([192.94.94.40]:34505 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755917AbbLAJtH (ORCPT ); Tue, 1 Dec 2015 04:49:07 -0500 Subject: Re: [RFC v02 03/15] dmaengine: core: Introduce new, universal API to request a channel To: Arnd Bergmann References: <1448891145-10766-1-git-send-email-peter.ujfalusi@ti.com> <1448891145-10766-4-git-send-email-peter.ujfalusi@ti.com> <2436417.uspUkNqtIA@wuerfel> CC: , , , , , , , , From: Peter Ujfalusi Message-ID: <565D6CF2.8090305@ti.com> Date: Tue, 1 Dec 2015 11:48:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <2436417.uspUkNqtIA@wuerfel> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1230 Lines: 33 On 11/30/2015 04:09 PM, Arnd Bergmann wrote: > On Monday 30 November 2015 15:45:33 Peter Ujfalusi wrote: >> const char *name); >> struct dma_chan *dma_request_slave_channel(struct device *dev, const char *name); >> + >> +struct dma_chan *dma_request_chan(struct device *dev, const char *name); >> +struct dma_chan *dma_request_chan_by_mask(const dma_cap_mask_t *mask); >> + >> void dma_release_channel(struct dma_chan *chan); >> int dma_get_slave_caps(struct dma_chan *chan, struct dma_slave_caps *caps); >> #else >> @@ -1268,6 +1291,14 @@ static inline struct dma_chan *dma_request_slave_channel(struct device *dev, >> { >> return NULL; >> } >> +static inline struct dma_chan *dma_request_chan(struct device *dev) >> +{ >> + return ERR_PTR(-ENODEV); >> +} >> > > The prototypes for dma_request_chan() don't match, otherwise looks good. Aargh, the !CONFIG_DMA_ENGINE path... Fixed for the next RFC Thanks, P?ter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/