mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-30 16:07:39 +00:00
rtc: ds1307: constify struct chip_desc variables
Constify struct chip_desc variables. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
This commit is contained in:
parent
d8490fd55a
commit
7624df482d
1 changed files with 3 additions and 3 deletions
|
@ -147,7 +147,7 @@ struct chip_desc {
|
||||||
|
|
||||||
static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode);
|
static u8 do_trickle_setup_ds1339(struct ds1307 *, uint32_t ohms, bool diode);
|
||||||
|
|
||||||
static struct chip_desc chips[last_ds_type] = {
|
static const struct chip_desc chips[last_ds_type] = {
|
||||||
[ds_1307] = {
|
[ds_1307] = {
|
||||||
.nvram_offset = 8,
|
.nvram_offset = 8,
|
||||||
.nvram_size = 56,
|
.nvram_size = 56,
|
||||||
|
@ -941,7 +941,7 @@ static u8 do_trickle_setup_ds1339(struct ds1307 *ds1307,
|
||||||
}
|
}
|
||||||
|
|
||||||
static u8 ds1307_trickle_init(struct ds1307 *ds1307,
|
static u8 ds1307_trickle_init(struct ds1307 *ds1307,
|
||||||
struct chip_desc *chip)
|
const struct chip_desc *chip)
|
||||||
{
|
{
|
||||||
uint32_t ohms;
|
uint32_t ohms;
|
||||||
bool diode = true;
|
bool diode = true;
|
||||||
|
@ -1311,7 +1311,7 @@ static int ds1307_probe(struct i2c_client *client,
|
||||||
struct ds1307 *ds1307;
|
struct ds1307 *ds1307;
|
||||||
int err = -ENODEV;
|
int err = -ENODEV;
|
||||||
int tmp, wday;
|
int tmp, wday;
|
||||||
struct chip_desc *chip;
|
const struct chip_desc *chip;
|
||||||
bool want_irq = false;
|
bool want_irq = false;
|
||||||
bool ds1307_can_wakeup_device = false;
|
bool ds1307_can_wakeup_device = false;
|
||||||
unsigned char *buf;
|
unsigned char *buf;
|
||||||
|
|
Loading…
Reference in a new issue