r852.c (7e534323c416216e8ac45b5633fb0a5e5137e5b5) | r852.c (c0739d85723a381302907f9613392d7ac8515176) |
---|---|
1/* 2 * Copyright © 2009 - Maxim Levitsky 3 * driver for Ricoh xD readers 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 218 unchanged lines hidden (view full) --- 227 228 if (do_read && bounce) 229 memcpy((void *)buf, dev->bounce_buffer, R852_DMA_LEN); 230} 231 232/* 233 * Program data lines of the nand chip to send data to it 234 */ | 1/* 2 * Copyright © 2009 - Maxim Levitsky 3 * driver for Ricoh xD readers 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License version 2 as 7 * published by the Free Software Foundation. 8 */ --- 218 unchanged lines hidden (view full) --- 227 228 if (do_read && bounce) 229 memcpy((void *)buf, dev->bounce_buffer, R852_DMA_LEN); 230} 231 232/* 233 * Program data lines of the nand chip to send data to it 234 */ |
235static void r852_write_buf(struct mtd_info *mtd, const uint8_t *buf, int len) | 235static void r852_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) |
236{ | 236{ |
237 struct r852_device *dev = r852_get_dev(mtd); | 237 struct r852_device *dev = r852_get_dev(nand_to_mtd(chip)); |
238 uint32_t reg; 239 240 /* Don't allow any access to hardware if we suspect card removal */ 241 if (dev->card_unstable) 242 return; 243 244 /* Special case for whole sector read */ 245 if (len == R852_DMA_LEN && dev->dma_usable) { --- 838 unchanged lines hidden --- | 238 uint32_t reg; 239 240 /* Don't allow any access to hardware if we suspect card removal */ 241 if (dev->card_unstable) 242 return; 243 244 /* Special case for whole sector read */ 245 if (len == R852_DMA_LEN && dev->dma_usable) { --- 838 unchanged lines hidden --- |