From: Mark Brown <broonie@kernel.org>
To: Laurentiu Palcu <laurentiu.palcu@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>,
Lee Jones <lee.jones@linaro.org>, Johan Havold <johan@kernel.org>,
Octavian Purdila <octavian.purdila@intel.com>,
linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] spi: add support for DLN-2 USB-SPI adapter
Date: Sat, 8 Nov 2014 10:46:06 +0000 [thread overview]
Message-ID: <20141108104606.GH2722@sirena.org.uk> (raw)
In-Reply-To: <1415364314-30320-2-git-send-email-laurentiu.palcu@intel.com>
[-- Attachment #1: Type: text/plain, Size: 852 bytes --]
On Fri, Nov 07, 2014 at 02:45:13PM +0200, Laurentiu Palcu wrote:
> +static int dln2_spi_transfer_one_message(struct spi_master *master,
> + struct spi_message *msg)
It's a bit sad not to do transfer_one() but it's reasonable not to
because of the fun way /CS is being set.
> + ret = dln2_spi_get_speed_range(dln2,
> + &master->min_speed_hz,
> + &master->max_speed_hz);
Strange indentation here.
> +static int dln2_spi_remove(struct platform_device *pdev)
> +{
> + struct spi_master *master = spi_master_get(platform_get_drvdata(pdev));
> + struct dln2_spi *dln2 = spi_master_get_devdata(master);
> +
> + if (dln2_spi_enable(dln2, false) < 0)
> + dev_err(&pdev->dev, "Failed to disable SPI module\n");
> +
> + spi_master_put(master);
You shouldn't need this _put(), it's defeating the purpose of having the
devm_ registration.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2014-11-08 10:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 12:45 [PATCH 0/2] Add SPI support for Diolan DLN2 Laurentiu Palcu
2014-11-07 12:45 ` [PATCH 1/2] spi: add support for DLN-2 USB-SPI adapter Laurentiu Palcu
2014-11-08 10:46 ` Mark Brown [this message]
2014-11-11 12:38 ` Laurentiu Palcu
2014-11-11 12:41 ` Mark Brown
2014-11-07 12:45 ` [PATCH 2/2] mfd: dln2: add support for USB-SPI module Laurentiu Palcu
2014-11-08 10:33 ` Mark Brown
2014-11-10 9:30 ` Lee Jones
2014-11-11 13:09 ` Laurentiu Palcu
2014-11-13 10:32 ` Lee Jones
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141108104606.GH2722@sirena.org.uk \
--to=broonie@kernel.org \
--cc=johan@kernel.org \
--cc=laurentiu.palcu@intel.com \
--cc=lee.jones@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=octavian.purdila@intel.com \
--cc=sameo@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®