gpio-mc33880.c (65b7f6d740a6696974056251c98da0e99f956be8) | gpio-mc33880.c (58383c78425e4ee1c077253cf297b641c861c02e) |
---|---|
1/* 2 * MC33880 high-side/low-side switch GPIO driver 3 * Copyright (c) 2009 Intel Corporation 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 * --- 102 unchanged lines hidden (view full) --- 111 112 mc->spi = spi; 113 114 mc->chip.label = DRIVER_NAME, 115 mc->chip.set = mc33880_set; 116 mc->chip.base = pdata->base; 117 mc->chip.ngpio = PIN_NUMBER; 118 mc->chip.can_sleep = true; | 1/* 2 * MC33880 high-side/low-side switch GPIO driver 3 * Copyright (c) 2009 Intel Corporation 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 * --- 102 unchanged lines hidden (view full) --- 111 112 mc->spi = spi; 113 114 mc->chip.label = DRIVER_NAME, 115 mc->chip.set = mc33880_set; 116 mc->chip.base = pdata->base; 117 mc->chip.ngpio = PIN_NUMBER; 118 mc->chip.can_sleep = true; |
119 mc->chip.dev = &spi->dev; | 119 mc->chip.parent = &spi->dev; |
120 mc->chip.owner = THIS_MODULE; 121 122 mc->port_config = 0x00; 123 /* write twice, because during initialisation the first setting 124 * is just for testing SPI communication, and the second is the 125 * "real" configuration 126 */ 127 ret = mc33880_write_config(mc); --- 61 unchanged lines hidden --- | 120 mc->chip.owner = THIS_MODULE; 121 122 mc->port_config = 0x00; 123 /* write twice, because during initialisation the first setting 124 * is just for testing SPI communication, and the second is the 125 * "real" configuration 126 */ 127 ret = mc33880_write_config(mc); --- 61 unchanged lines hidden --- |