Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1402864
| Path | csiph.com!weretis.net!feeder4.news.weretis.net!news.mixmin.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Ian Abbott <abbotti@mev.co.uk> |
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 01/14] staging: comedi: daqboard2000: remove commented out code |
| Date | Wed, 18 May 2016 12:30:01 +0200 |
| Message-ID | <rA6TL-Pd-1@gated-at.bofh.it> (permalink) |
| References | <rzJXb-2UD-3@gated-at.bofh.it> <rzJXh-2UD-25@gated-at.bofh.it> <rzQYH-7s5-37@gated-at.bofh.it> |
| X-Original-To | Hartley Sweeten <HartleyS@visionengravers.com>, "devel@driverdev.osuosl.org" <devel@driverdev.osuosl.org> |
| X-Auth-ID | abbotti@mev.co.uk |
| X-Sender-ID | abbotti@mev.co.uk |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.6.0 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 45 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Greg Kroah-Hartman <gregkh@linuxfoundation.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> |
| X-Original-Date | Wed, 18 May 2016 11:21:54 +0100 |
| X-Original-Message-ID | <573C4242.2010507@mev.co.uk> |
| X-Original-References | <1463478773-5916-1-git-send-email-abbotti@mev.co.uk> <1463478773-5916-2-git-send-email-abbotti@mev.co.uk> <CO2PR01MB2088DE5D9B90F129786D21A4D0480@CO2PR01MB2088.prod.exchangelabs.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1402864 |
Show key headers only | View raw
On 17/05/16 18:14, Hartley Sweeten wrote: > On Tuesday, May 17, 2016 2:53 AM, Ian Abbott wrote: >> Remove some commented out code. Some of it uses constructs that don't >> exist in the driver, and probably come from the source code for the MS >> Windows driver. >> >> Signed-off-by: Ian Abbott <abbotti@mev.co.uk> >> --- >> drivers/staging/comedi/drivers/daqboard2000.c | 6 ------ >> 1 file changed, 6 deletions(-) >> >> diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c >> index 57ab668..8c9a024 100644 >> --- a/drivers/staging/comedi/drivers/daqboard2000.c >> +++ b/drivers/staging/comedi/drivers/daqboard2000.c [snip] >> @@ -315,10 +313,6 @@ static void setup_sampling(struct comedi_device *dev, int chan, int gain) >> word3 = 0; >> break; >> } >> -/* >> - dev->eeprom.correctionDACSE[i][j][k].offset = 0x800; >> - dev->eeprom.correctionDACSE[i][j][k].gain = 0xc00; >> -*/ >> /* These should be read from EEPROM */ >> word2 |= 0x0800; >> word3 |= 0xc000; > > It might be a good idea to add a comment about the magic 0x0800 and 0xc000 values: > >> word2 |= 0x0800; /* offset */ >> word3 |= 0xc000; /* gain */ Fair enough. > Wish I could find a register map for this board. I sent an email to Measurement Computing > to see if one is available. I think the board was made by IOTech and added to Measurement Computing's catalog, and the Windows driver appears to have been done by IOTech too. -- -=( Ian Abbott @ MEV Ltd. E-mail: <abbotti@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 01/14] staging: comedi: daqboard2000: remove commented out code Ian Abbott <abbotti@mev.co.uk> - 2016-05-17 12:00 +0200
RE: [PATCH 01/14] staging: comedi: daqboard2000: remove commented out code Hartley Sweeten <HartleyS@visionengravers.com> - 2016-05-17 19:30 +0200
Re: [PATCH 01/14] staging: comedi: daqboard2000: remove commented out code Ian Abbott <abbotti@mev.co.uk> - 2016-05-18 12:30 +0200
csiph-web