tbf: Constify some methods

Change-Id: I2681a98583f4fb26a274c75d0279084239f76a68
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 74c790c..35bd81d 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -544,7 +544,7 @@
 }
 
 int gprs_rlcmac_tbf::check_polling(uint32_t fn, uint8_t ts,
-	uint32_t *poll_fn_, unsigned int *rrbp_)
+	uint32_t *poll_fn_, unsigned int *rrbp_) const
 {
 	uint32_t new_poll_fn = next_fn(fn, 13);
 
@@ -1066,7 +1066,7 @@
 	return 0;
 }
 
-const char *tbf_name(gprs_rlcmac_tbf *tbf)
+const char *tbf_name(const gprs_rlcmac_tbf *tbf)
 {
 	return tbf ? tbf->name() : "(no TBF)";
 }
diff --git a/src/tbf.h b/src/tbf.h
index a2c4747..1d28afb 100644
--- a/src/tbf.h
+++ b/src/tbf.h
@@ -190,7 +190,7 @@
 extern "C" {
 #endif
 struct gprs_rlcmac_tbf;
-const char *tbf_name(struct gprs_rlcmac_tbf *tbf);
+const char *tbf_name(const struct gprs_rlcmac_tbf *tbf);
 enum gprs_rlcmac_tbf_state tbf_state(const struct gprs_rlcmac_tbf *tbf);
 enum gprs_rlcmac_tbf_direction tbf_direction(const struct gprs_rlcmac_tbf *tbf);
 void tbf_set_ms(struct gprs_rlcmac_tbf *tbf, struct GprsMs *ms);
@@ -262,7 +262,7 @@
 	int establish_dl_tbf_on_pacch();
 
 	int check_polling(uint32_t fn, uint8_t ts,
-		uint32_t *poll_fn, unsigned int *rrbp);
+		uint32_t *poll_fn, unsigned int *rrbp) const;
 	void set_polling(uint32_t poll_fn, uint8_t ts, enum gprs_rlcmac_tbf_poll_type t);
 	void poll_timeout();