adi_v5_swd: Improve SWD support
[fw/openocd] / src / target / algorithm.h
index abb8ecfc6e2521e60eddc4c1c96598b00d24d671..2d510db7ad58bf6f62d088d4bcb06f31c12a6c9b 100644 (file)
  *   You should have received a copy of the GNU General Public License     *
  *   along with this program; if not, write to the                         *
  *   Free Software Foundation, Inc.,                                       *
- *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
+ *   51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.           *
  ***************************************************************************/
+
 #ifndef ALGORITHM_H
 #define ALGORITHM_H
 
-enum param_direction
-{
+enum param_direction {
        PARAM_IN,
        PARAM_OUT,
        PARAM_IN_OUT
 };
 
-struct mem_param
-{
+struct mem_param {
        uint32_t address;
        uint32_t size;
        uint8_t *value;
        enum param_direction direction;
 };
 
-struct reg_param
-{
-       char *reg_name;
+struct reg_param {
+       const char *reg_name;
        uint32_t size;
        uint8_t *value;
        enum param_direction direction;