| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 3 | | - * under the terms of the GNU General Public License as published by the |
|---|
| 4 | | - * Free Software Foundation; either version 2 of the License, or (at your |
|---|
| 5 | | - * option) any later version. |
|---|
| 6 | 3 | */ |
|---|
| 7 | 4 | |
|---|
| 8 | 5 | #ifndef __BCM47XX_SPROM_H |
|---|
| .. | .. |
|---|
| 12 | 9 | #include <linux/kernel.h> |
|---|
| 13 | 10 | #include <linux/vmalloc.h> |
|---|
| 14 | 11 | |
|---|
| 12 | +struct ssb_sprom; |
|---|
| 13 | + |
|---|
| 15 | 14 | #ifdef CONFIG_BCM47XX_SPROM |
|---|
| 15 | +void bcm47xx_fill_sprom(struct ssb_sprom *sprom, const char *prefix, |
|---|
| 16 | + bool fallback); |
|---|
| 16 | 17 | int bcm47xx_sprom_register_fallbacks(void); |
|---|
| 17 | 18 | #else |
|---|
| 19 | +static inline void bcm47xx_fill_sprom(struct ssb_sprom *sprom, |
|---|
| 20 | + const char *prefix, |
|---|
| 21 | + bool fallback) |
|---|
| 22 | +{ |
|---|
| 23 | +} |
|---|
| 24 | + |
|---|
| 18 | 25 | static inline int bcm47xx_sprom_register_fallbacks(void) |
|---|
| 19 | 26 | { |
|---|
| 20 | 27 | return -ENOTSUPP; |
|---|